iced::widget::svg

Type Alias StyleFn

pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme, Status) -> Style + 'a>;
Available on crate feature svg only.
Expand description

A styling function for an Svg.

This is just a boxed closure: Fn(&Theme, Status) -> Style.

Aliased Typeยง

struct StyleFn<'a, Theme>(/* private fields */);