pub struct SegoeFluentLoader<'a> { /* private fields */ }Expand description
Loader for Windows Segoe Fluent Icons (Windows only).
Segoe icons have no themes. A Segoe Fluent glyph is monochrome, drawn
white unless Self::color gives it a foreground colour; a stock shell
icon (the SIID_* and IDI_QUESTION names) is full-colour and keeps its
own colours.
Implementations§
Source§impl<'a> SegoeFluentLoader<'a>
impl<'a> SegoeFluentLoader<'a>
Sourcepub fn new(id: impl Into<IconId<'a>>) -> Self
pub fn new(id: impl Into<IconId<'a>>) -> Self
Construct a new Segoe Fluent loader for the given icon id. Defaults: size 32 pixels, no fg_color.
Sourcepub fn size(self, size: u32) -> Self
pub fn size(self, size: u32) -> Self
Set a glyph’s size in pixels (default 32), the em height its font
is created with, clamped to 1..=MAX_ICON_SIZE. A stock shell
icon keeps the system’s large icon size.
Sourcepub fn color(self, color: Rgba) -> Self
pub fn color(self, color: Rgba) -> Self
Set the foreground color a monochrome glyph is drawn in; its alpha is ignored: the glyph keeps its own coverage. A full-colour stock icon is unchanged.
Sourcepub fn color_opt(self, color: Option<Rgba>) -> Self
pub fn color_opt(self, color: Option<Rgba>) -> Self
Set the foreground color if Some, leave default if None; its
alpha is ignored, as in Self::color.