pub trait StyleSheet {
type Style: Default;
// Required methods
fn horizontal(&self, style: &Self::Style) -> Appearance;
fn vertical(&self, style: &Self::Style) -> Appearance;
}
Expand description
Defines the Appearance
of a segmented button.
Required Associated Types§
sourcetype Style: Default
type Style: Default
The supported style of the StyleSheet
.
Required Methods§
sourcefn horizontal(&self, style: &Self::Style) -> Appearance
fn horizontal(&self, style: &Self::Style) -> Appearance
The horizontal Appearance
of the segmented button.
sourcefn vertical(&self, style: &Self::Style) -> Appearance
fn vertical(&self, style: &Self::Style) -> Appearance
The vertical Appearance
of the segmented button.