Trait cosmic::iced::widget::svg::StyleSheet

source ·
pub trait StyleSheet {
    type Style: Default;

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

The stylesheet of a svg.

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 Appearance of the svg.

source

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

Produces the hovered Appearance of a svg content.

Implementations on Foreign Types§

source§

impl StyleSheet for fn(_: &Theme) -> Appearance

§

type Style = Theme

source§

fn appearance( &self, style: &<fn(_: &Theme) -> Appearance as StyleSheet>::Style, ) -> Appearance

source§

fn hovered( &self, style: &<fn(_: &Theme) -> Appearance as StyleSheet>::Style, ) -> Appearance

Implementors§

source§

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

§

type Style = Svg

source§

impl StyleSheet for cosmic::Theme

§

type Style = Svg