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 ThemeBuilderwhere
*const ArcInner<Vec<FontFamily>> is !null: Freeze,
PhantomData<ArcInner<Vec<FontFamily>>>: Freeze,
*const ArcInner<SpacingPayload> is !null: Freeze,
PhantomData<ArcInner<SpacingPayload>>: Freeze,
*const ArcInner<Vec<OpaqueColor>> is !null: Freeze,
PhantomData<ArcInner<Vec<OpaqueColor>>>: Freeze,
*const ArcInner<Vec<ColorStop>> is !null: Freeze,
PhantomData<ArcInner<Vec<ColorStop>>>: Freeze,
impl Move for ThemeBuilder
impl RefUnwindSafe for ThemeBuilder
impl Send for ThemeBuilder
impl Sync for ThemeBuilder
impl Unpin for ThemeBuilder
impl UnsafeUnpin for ThemeBuilderwhere
*const ArcInner<Vec<FontFamily>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<FontFamily>>>: UnsafeUnpin,
*const ArcInner<SpacingPayload> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpacingPayload>>: UnsafeUnpin,
*const ArcInner<Vec<OpaqueColor>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<OpaqueColor>>>: UnsafeUnpin,
*const ArcInner<Vec<ColorStop>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<ColorStop>>>: UnsafeUnpin,
impl UnwindSafe for ThemeBuilderwhere
Arc<Vec<FontFamily>>: UnwindSafe,
Arc<SpacingPayload>: UnwindSafe,
Arc<Vec<OpaqueColor>>: UnwindSafe,
Arc<Vec<ColorStop>>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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.