pub enum IconId {
Minimize,
Maximize,
Close,
Copy,
Trash,
History,
Plus,
Check,
Lucide(Icon),
Devicon(char),
Svg(SvgSource),
}Expand description
Icon source for rendering (DrawCmd::Image / Icon widget).
Values cover built-in chrome/actions, Lucide glyphs, Devicons codepoints, and custom SVG sources.
§Examples
use ailloli_ui_core::IconId;
assert_eq!(IconId::Devicon('R'), IconId::Devicon('R'));
assert_ne!(IconId::Close, IconId::Check);Variants§
Minimize
Window minimize (chrome).
Maximize
Window maximize (chrome).
Close
Window close (chrome).
Copy
Copy action.
Trash
Delete action.
History
History action.
Plus
Add action.
Check
Checkbox / check mark (Lucide check).
Lucide(Icon)
Arbitrary Lucide glyph.
Devicon(char)
Devicons Nerd Font codepoint.
Svg(SvgSource)
Custom SVG rasterized at draw time.
Trait Implementations§
Source§impl PartialEq for IconId
impl PartialEq for IconId
impl Eq for IconId
Auto Trait Implementations§
impl Freeze for IconId
impl RefUnwindSafe for IconId
impl Send for IconId
impl Sync for IconId
impl Unpin for IconId
impl UnwindSafe for IconId
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