pub struct PresentationTheme {
pub name: String,
pub colors: ThemeColorScheme,
pub fonts: ThemeFonts,
}Expand description
Full presentation theme embedded in generated PPTX files
Fields§
§name: String§colors: ThemeColorScheme§fonts: ThemeFontsImplementations§
Source§impl PresentationTheme
impl PresentationTheme
pub fn new(name: impl Into<String>) -> Self
pub fn office() -> Self
pub fn colors(self, colors: ThemeColorScheme) -> Self
pub fn fonts(self, fonts: ThemeFonts) -> Self
pub fn major_font(self, typeface: impl Into<String>) -> Self
pub fn minor_font(self, typeface: impl Into<String>) -> Self
pub fn from_palette( name: impl Into<String>, primary: &str, secondary: &str, accent: &str, background: &str, text: &str, light: &str, dark: &str, ) -> Self
pub fn corporate() -> Self
pub fn modern() -> Self
pub fn vibrant() -> Self
pub fn dark() -> Self
pub fn nature() -> Self
pub fn tech() -> Self
pub fn carbon() -> Self
Sourcepub fn to_theme_xml(&self) -> String
pub fn to_theme_xml(&self) -> String
Generate ppt/theme/theme1.xml content using the full Office theme template.
Trait Implementations§
Source§impl Clone for PresentationTheme
impl Clone for PresentationTheme
Source§fn clone(&self) -> PresentationTheme
fn clone(&self) -> PresentationTheme
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresentationTheme
impl Debug for PresentationTheme
Source§impl Default for PresentationTheme
impl Default for PresentationTheme
impl Eq for PresentationTheme
Source§impl PartialEq for PresentationTheme
impl PartialEq for PresentationTheme
impl StructuralPartialEq for PresentationTheme
Auto Trait Implementations§
impl Freeze for PresentationTheme
impl RefUnwindSafe for PresentationTheme
impl Send for PresentationTheme
impl Sync for PresentationTheme
impl Unpin for PresentationTheme
impl UnsafeUnpin for PresentationTheme
impl UnwindSafe for PresentationTheme
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.