pub struct ThemeContext { /* private fields */ }
Expand description
The theme context
Implementations§
Methods from Deref<Target = Theme>§
Sourcepub fn get_palette(&self, name: &str) -> Option<&Palette>
pub fn get_palette(&self, name: &str) -> Option<&Palette>
Get a palette by name
pub fn palette_var(&self, palette: &str, selector: &str) -> String
pub fn class_var(&self, class: &str, var_name: &str) -> String
Sourcepub fn breakpoints(&self) -> &Breakpoints
pub fn breakpoints(&self) -> &Breakpoints
Gets a reference to the breakpoints object
Sourcepub fn typography(&self) -> &TypographyScale
pub fn typography(&self) -> &TypographyScale
Gets the typography scale
pub fn system_class(&self) -> String
Trait Implementations§
Source§impl Clone for ThemeContext
impl Clone for ThemeContext
Source§fn clone(&self) -> ThemeContext
fn clone(&self) -> ThemeContext
Returns a copy of the value. Read more
1.0.0 · 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 ThemeContext
impl Debug for ThemeContext
Source§impl Deref for ThemeContext
impl Deref for ThemeContext
Source§impl PartialEq for ThemeContext
impl PartialEq for ThemeContext
Auto Trait Implementations§
impl Freeze for ThemeContext
impl !RefUnwindSafe for ThemeContext
impl !Send for ThemeContext
impl !Sync for ThemeContext
impl Unpin for ThemeContext
impl !UnwindSafe for ThemeContext
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.