pub struct SegoeIconsLoader<'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> SegoeIconsLoader<'a>
impl<'a> SegoeIconsLoader<'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: no fg_color.
Sourcepub fn color(self, rgb: [u8; 3]) -> Self
pub fn color(self, rgb: [u8; 3]) -> Self
Set the foreground color a monochrome glyph is drawn in; its alpha is kept. A full-colour stock icon is unchanged.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SegoeIconsLoader<'a>
impl<'a> !Send for SegoeIconsLoader<'a>
impl<'a> !Sync for SegoeIconsLoader<'a>
impl<'a> !UnwindSafe for SegoeIconsLoader<'a>
impl<'a> Freeze for SegoeIconsLoader<'a>
impl<'a> Unpin for SegoeIconsLoader<'a>
impl<'a> UnsafeUnpin for SegoeIconsLoader<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more