Struct presenterm::PresentationThemeSet
source · pub struct PresentationThemeSet { /* private fields */ }Implementations§
source§impl PresentationThemeSet
impl PresentationThemeSet
sourcepub fn load_by_name(&self, name: &str) -> Option<PresentationTheme>
pub fn load_by_name(&self, name: &str) -> Option<PresentationTheme>
Loads a theme from its name.
sourcepub fn register_from_directory<P: AsRef<Path>>(
&mut self,
path: P
) -> Result<(), LoadThemeError>
pub fn register_from_directory<P: AsRef<Path>>( &mut self, path: P ) -> Result<(), LoadThemeError>
Register all the themes in the given directory.
sourcepub fn theme_names(&self) -> Vec<String>
pub fn theme_names(&self) -> Vec<String>
Get all the registered theme names.
Trait Implementations§
source§impl Default for PresentationThemeSet
impl Default for PresentationThemeSet
source§fn default() -> PresentationThemeSet
fn default() -> PresentationThemeSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PresentationThemeSet
impl Send for PresentationThemeSet
impl Sync for PresentationThemeSet
impl Unpin for PresentationThemeSet
impl UnwindSafe for PresentationThemeSet
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().