all tests passing now

This commit is contained in:
Chris Cochrun 2025-03-25 11:29:37 -05:00
parent 1ed04a1f64
commit d2e456eae4
2 changed files with 32 additions and 3 deletions

View file

@ -236,6 +236,26 @@ impl From<&Slide> for Value {
}
impl Slide {
pub fn set_text(mut self, text: impl AsRef<str>) -> Self {
self.text = text.as_ref().into();
self
}
pub fn set_font(mut self, font: impl AsRef<str>) -> Self {
self.font = font.as_ref().into();
self
}
pub fn set_font_size(mut self, font_size: i32) -> Self {
self.font_size = font_size;
self
}
pub fn set_audio(mut self, audio: Option<PathBuf>) -> Self {
self.audio = audio;
self
}
pub fn background(&self) -> &Background {
&self.background
}