Struct oxytail_theme_defaults::ThemeDefault
source · pub struct ThemeDefault;Implementations§
source§impl ThemeDefault
impl ThemeDefault
pub fn get_checkbox_style( checkbox_props: CheckboxProps, theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
pub fn get_input_style( input_props: InputProps, theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
pub fn get_toggle_style( toggle_props: ToggleProps, theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
pub fn get_radio_style( radio_props: RadioProps, theme_defaults: DefaultThemeProps ) -> (Box<dyn Fn(Style) -> Style>, Box<dyn Fn(Style) -> Style>)
pub fn get_header_style( header_props: HeaderProps, _theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
pub fn get_divider_style( _theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
pub fn get_tooltip_style( tooltip_props: TooltipProps, theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
sourcepub fn get_badge_style(
badge_props: BadgeProps,
theme_defaults: DefaultThemeProps
) -> Box<dyn Fn(Style) -> Style>
pub fn get_badge_style( badge_props: BadgeProps, theme_defaults: DefaultThemeProps ) -> Box<dyn Fn(Style) -> Style>
Defines how a badge should look like.
Auto Trait Implementations§
impl RefUnwindSafe for ThemeDefault
impl Send for ThemeDefault
impl Sync for ThemeDefault
impl Unpin for ThemeDefault
impl UnwindSafe for ThemeDefault
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.