Trait cosmic::iced_style::radio::StyleSheet
source · pub trait StyleSheet {
type Style: Default;
// Required methods
fn active(&self, style: &Self::Style, is_selected: bool) -> Appearance;
fn hovered(&self, style: &Self::Style, is_selected: bool) -> Appearance;
}
Expand description
A set of rules that dictate the style of a radio button.
Required Associated Types§
sourcetype Style: Default
type Style: Default
The supported style of the StyleSheet
.
Required Methods§
sourcefn active(&self, style: &Self::Style, is_selected: bool) -> Appearance
fn active(&self, style: &Self::Style, is_selected: bool) -> Appearance
Produces the active Appearance
of a radio button.
sourcefn hovered(&self, style: &Self::Style, is_selected: bool) -> Appearance
fn hovered(&self, style: &Self::Style, is_selected: bool) -> Appearance
Produces the hovered Appearance
of a radio button.