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