pub trait StyleSheet {
type Style: Default;
// Required methods
fn active(&self, style: &Self::Style, is_active: bool) -> Appearance;
fn hovered(&self, style: &Self::Style, is_active: bool) -> Appearance;
}Expand description
A set of rules that dictate the style of a toggler.
Required Associated Types§
Sourcetype Style: Default
type Style: Default
The supported style of the StyleSheet.
Required Methods§
Sourcefn active(&self, style: &Self::Style, is_active: bool) -> Appearance
fn active(&self, style: &Self::Style, is_active: bool) -> Appearance
Returns the active Appearance of the toggler for the provided Style.
Sourcefn hovered(&self, style: &Self::Style, is_active: bool) -> Appearance
fn hovered(&self, style: &Self::Style, is_active: bool) -> Appearance
Returns the hovered Appearance of the toggler for the provided Style.