pub trait StyleSheet {
type Style: Default + Clone;
// Required method
fn appearance(&self, style: &Self::Style) -> Appearance;
}
Expand description
The style sheet of a menu.
Required Associated Types§
Sourcetype Style: Default + Clone
type Style: Default + Clone
The supported style of the StyleSheet
.
Required Methods§
Sourcefn appearance(&self, style: &Self::Style) -> Appearance
fn appearance(&self, style: &Self::Style) -> Appearance
Produces the Appearance
of a menu.