pub struct ThemeBuilder { /* private fields */ }Expand description
Construction-only working copy of a complete Theme.
Implementations§
Source§impl ThemeBuilder
impl ThemeBuilder
Sourcepub fn get_surfaces(&self) -> &SurfaceTheme
pub fn get_surfaces(&self) -> &SurfaceTheme
Borrow the current complete surfaces component.
Sourcepub fn surfaces(self, value: SurfaceTheme) -> Self
pub fn surfaces(self, value: SurfaceTheme) -> Self
Replace the complete surfaces construction input.
Sourcepub fn get_typography(&self) -> &TypographyTheme
pub fn get_typography(&self) -> &TypographyTheme
Borrow the current complete typography component.
Sourcepub fn typography(self, value: TypographyTheme) -> Self
pub fn typography(self, value: TypographyTheme) -> Self
Replace the complete typography construction input.
Sourcepub fn get_legend(&self) -> &LegendTheme
pub fn get_legend(&self) -> &LegendTheme
Borrow the current complete legend component.
Sourcepub fn legend(self, value: LegendTheme) -> Self
pub fn legend(self, value: LegendTheme) -> Self
Replace the complete legend construction input.
Sourcepub fn get_composition(&self) -> &CompositionTheme
pub fn get_composition(&self) -> &CompositionTheme
Borrow the current complete composition component.
Sourcepub fn composition(self, value: CompositionTheme) -> Self
pub fn composition(self, value: CompositionTheme) -> Self
Replace the complete composition construction input.
Sourcepub fn get_annotations(&self) -> &AnnotationTheme
pub fn get_annotations(&self) -> &AnnotationTheme
Borrow the current complete annotations component.
Sourcepub fn annotations(self, value: AnnotationTheme) -> Self
pub fn annotations(self, value: AnnotationTheme) -> Self
Replace the complete annotations construction input.
Sourcepub fn get_color_scales(&self) -> &ColorScales
pub fn get_color_scales(&self) -> &ColorScales
Borrow the current complete color_scales component.
Sourcepub fn color_scales(self, value: ColorScales) -> Self
pub fn color_scales(self, value: ColorScales) -> Self
Replace the complete color_scales construction input.
Source§impl ThemeBuilder
impl ThemeBuilder
Sourcepub fn font_stack(self, stack: FontStack) -> Result<Self>
pub fn font_stack(self, stack: FontStack) -> Result<Self>
Replace the stack in all eighteen roles once; later role edits take precedence normally.
Trait Implementations§
Source§impl Clone for ThemeBuilder
impl Clone for ThemeBuilder
Auto Trait Implementations§
impl Forget for ThemeBuilder
impl Freeze for ThemeBuilder
impl Move for ThemeBuilder
impl RefUnwindSafe for ThemeBuilder
impl Send for ThemeBuilder
impl Sync for ThemeBuilder
impl Unpin for ThemeBuilder
impl UnsafeUnpin for ThemeBuilder
impl UnwindSafe for ThemeBuilder
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.