Trait cosmic::iced_style::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§
sourcetype Style: Default
type Style: Default
The supported style of the StyleSheet
.
Required Methods§
sourcefn appearance(&self, style: &Self::Style) -> Appearance
fn appearance(&self, style: &Self::Style) -> Appearance
Produces the Appearance
of the svg.
sourcefn hovered(&self, style: &Self::Style) -> Appearance
fn hovered(&self, style: &Self::Style) -> Appearance
Produces the hovered Appearance
of a svg content.