pub struct ThemePart { /* private fields */ }Expand description
Theme part (ppt/theme/themeN.xml)
Implementations§
Source§impl ThemePart
impl ThemePart
Sourcepub fn theme_number(&self) -> usize
pub fn theme_number(&self) -> usize
Get theme number
Sourcepub fn set_major_font(&mut self, typeface: impl Into<String>)
pub fn set_major_font(&mut self, typeface: impl Into<String>)
Set major font (headings)
Sourcepub fn set_minor_font(&mut self, typeface: impl Into<String>)
pub fn set_minor_font(&mut self, typeface: impl Into<String>)
Set minor font (body)
Sourcepub fn set_color(&mut self, name: impl Into<String>, value: impl Into<String>)
pub fn set_color(&mut self, name: impl Into<String>, value: impl Into<String>)
Set a theme color
Sourcepub fn rel_target(&self) -> String
pub fn rel_target(&self) -> String
Get relative path for relationships
Trait Implementations§
Source§impl Part for ThemePart
impl Part for ThemePart
Source§fn content_type(&self) -> ContentType
fn content_type(&self) -> ContentType
Get the content type
Auto Trait Implementations§
impl Freeze for ThemePart
impl RefUnwindSafe for ThemePart
impl Send for ThemePart
impl Sync for ThemePart
impl Unpin for ThemePart
impl UnsafeUnpin for ThemePart
impl UnwindSafe for ThemePart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more