StyleSheet

Trait 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 an application.

Required Associated Types§

Source

type Style: Default

The supported style of the StyleSheet.

Required Methods§

Source

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

Returns the Appearance of the application for the provided Style.

Implementations on Foreign Types§

Source§

impl StyleSheet for fn(&Theme) -> Appearance

Implementors§