Trait cosmic::widget::segmented_button::StyleSheet

source ·
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§

source

type Style: Default

The supported style of the StyleSheet.

Required Methods§

source

fn horizontal(&self, style: &Self::Style) -> Appearance

The horizontal Appearance of the segmented button.

source

fn vertical(&self, style: &Self::Style) -> Appearance

The vertical Appearance of the segmented button.

Implementors§