Expand description
Icon — a small set of vector icons drawn with the painter.
egui bundles no icon font, and gpui-component’s Lucide set is far too large to vendor, so this provides the handful of glyphs the other components need (chevrons, check, close, search, …) as stroke-drawn shapes. Each is laid out inside a unit box and scaled to the requested size, so they stay crisp at any scale.
ⓘ
ui.add(sc::Icon::new(sc::IconKind::Search).size(18.0));Structs§
Enums§
Functions§
- paint_
icon - Paint
kindinsiderect— reusable by other components that already own a painter and rect (menus, sidebar, alerts, …).