Trait cosmic::iced_widget::style::rule::StyleSheet

source ·
pub trait StyleSheet {
    type Style: Default;

    // Required method
    fn appearance(&self, style: &Self::Style) -> Appearance;
}
Expand description

A set of rules that dictate the style of a rule.

Required Associated Types§

source

type Style: Default

The supported style of the StyleSheet.

Required Methods§

source

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

Produces the style of a rule.

Implementors§

source§

impl StyleSheet for cosmic::iced_winit::style::Theme

§

type Style = Rule

source§

impl StyleSheet for cosmic::Theme

§

type Style = Rule

source§

impl<T> StyleSheet for T
where T: Fn(&Theme) -> Appearance,

§

type Style = Theme