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) -> ThemeBuilder
pub fn surfaces(self, value: SurfaceTheme) -> ThemeBuilder
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) -> ThemeBuilder
pub fn typography(self, value: TypographyTheme) -> ThemeBuilder
Replace the complete typography construction input.
Sourcepub fn axes(self, value: AxisTheme) -> ThemeBuilder
pub fn axes(self, value: AxisTheme) -> ThemeBuilder
Replace the complete axes 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) -> ThemeBuilder
pub fn legend(self, value: LegendTheme) -> ThemeBuilder
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) -> ThemeBuilder
pub fn composition(self, value: CompositionTheme) -> ThemeBuilder
Replace the complete composition construction input.
Sourcepub fn marks(self, value: MarkTheme) -> ThemeBuilder
pub fn marks(self, value: MarkTheme) -> ThemeBuilder
Replace the complete marks 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) -> ThemeBuilder
pub fn annotations(self, value: AnnotationTheme) -> ThemeBuilder
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) -> ThemeBuilder
pub fn color_scales(self, value: ColorScales) -> ThemeBuilder
Replace the complete color_scales construction input.
Source§impl ThemeBuilder
impl ThemeBuilder
Sourcepub fn new(value: Theme) -> ThemeBuilder
pub fn new(value: Theme) -> ThemeBuilder
Consume a complete initial theme for construction edits.
Sourcepub fn font_stack(self, stack: FontStack) -> Result<ThemeBuilder, Error>
pub fn font_stack(self, stack: FontStack) -> Result<ThemeBuilder, Error>
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
Source§fn clone(&self) -> ThemeBuilder
fn clone(&self) -> ThemeBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto 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
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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.