Enum Icon
pub enum Icon {
Show 236 variants
LayoutGrid,
Settings2,
Mouse,
Keyboard,
Users,
Printer,
Globe,
Wifi,
Bluetooth,
Monitor,
Battery,
Shield,
Maximize2,
Minimize2,
X,
ChevronUp,
ChevronDown,
ChevronLeft,
Plus,
Search,
PenTool,
Code,
Terminal,
FileText,
BarChart,
Layers,
Settings,
Home,
Camera,
Power,
Folder,
FolderOpen,
File,
Image,
Music,
Film,
Archive,
FileCode,
ArrowLeft,
ArrowRight,
ArrowUp,
ArrowDown,
ChevronRight,
RotateCcw,
RotateCw,
Copy,
Scissors,
ClipboardPaste,
Trash2,
Pencil,
Square,
AArrowDown,
AArrowUp,
Ruler,
Minus,
FolderPlus,
FilePlus,
List,
Star,
Pin,
HardDrive,
Check,
Flame,
GalleryVerticalEnd,
History,
Timer,
ThumbsUp,
ThumbsDown,
ListVideo,
PictureInPicture2,
Sparkles,
Eye,
MousePointer2,
Menu,
Info,
CloudDownload,
ArrowUpDown,
Bell,
Play,
Pause,
Refresh,
ExternalLink,
Trash,
MoreHorizontal,
Inbox,
Send,
Reply,
Mail,
Paperclip,
Calendar,
Ban,
Download,
Sun,
Volume2,
VolumeX,
WifiOff,
EthernetPort,
Mic,
MicOff,
SkipForward,
SkipBack,
ArrowBigUp,
Delete,
CornerDownLeft,
Undo2,
Redo2,
TriangleAlert,
PanelLeft,
PanelRight,
EyeOff,
Phone,
Link,
MapPin,
QrCode,
ScanLine,
SwitchCamera,
User,
UserPlus,
Hash,
Smile,
SmilePlus,
Video,
PhoneOff,
Lock,
MessageSquare,
Clock,
AlarmClock,
Hourglass,
Bookmark,
Tag,
Rss,
Upload,
Type,
Box,
Contrast,
Columns2,
Palette,
Crop,
Usb,
CircleCheck,
Disc3,
Bold,
Italic,
Underline,
Strikethrough,
Superscript,
Subscript,
Heading1,
Heading2,
ListOrdered,
Quote,
ReplyAll,
Forward,
MailOpen,
AlignLeft,
AlignCenter,
AlignRight,
AlignJustify,
BringToFront,
SendToBack,
Baseline,
Highlighter,
Table,
ListTree,
Shuffle,
Repeat,
Repeat1,
Heart,
ListMusic,
Speaker,
Headphones,
Gauge,
LocateFixed,
Navigation,
Flag,
CornerUpLeft,
CornerUpRight,
ArrowUpLeft,
ArrowUpRight,
ArrowDownLeft,
ArrowDownRight,
Coffee,
Utensils,
Beer,
Landmark,
Trees,
TrainFront,
BedDouble,
ShoppingBag,
Hospital,
Droplet,
Wind,
Cloud,
CloudRain,
CloudSnow,
Moon,
Hand,
PawPrint,
Plane,
Trophy,
Lightbulb,
SdCard,
Brush,
Circle,
Slash,
Pipette,
Eraser,
LockOpen,
Unlink,
Bot,
SquareDashed,
CircleDashed,
Lasso,
WandSparkles,
PaintBucket,
SquaresUnite,
SquaresSubtract,
SquaresIntersect,
SquaresExclude,
SquareTerminal,
ScreenShare,
AppWindow,
MonitorSmartphone,
AlignEndVertical,
ALargeSmall,
AlignCenterVertical,
Fingerprint,
AlignEndHorizontal,
BatteryCharging,
Accessibility,
AlignStartVertical,
AlignHorizontalDistributeCenter,
CircleAlert,
AlignVerticalDistributeCenter,
AlignCenterHorizontal,
AlignStartHorizontal,
}Expand description
Stable identifier for a lucide glyph. New entries map 1:1 to lucide
icon kebab names (e.g. Icon::LayoutGrid → layout-grid).
Variants§
LayoutGrid
Settings2
Mouse
Keyboard
Users
Printer
Globe
Wifi
Bluetooth
Monitor
Battery
Shield
Maximize2
Minimize2
X
ChevronUp
ChevronDown
ChevronLeft
Plus
Search
PenTool
Code
Terminal
FileText
BarChart
Layers
Settings
Home
Camera
Power
Folder
FolderOpen
File
Image
Music
Film
Archive
FileCode
ArrowLeft
ArrowRight
ArrowUp
ArrowDown
ChevronRight
RotateCcw
RotateCw
Copy
Scissors
ClipboardPaste
Trash2
Pencil
Square
AArrowDown
Make the text smaller.
AArrowUp
Make the text larger.
Ruler
Show or hide a ruler.
Minus
A window’s minimize control.
FolderPlus
FilePlus
List
Star
Pin
HardDrive
Check
Flame
GalleryVerticalEnd
History
Timer
ThumbsUp
ThumbsDown
ListVideo
PictureInPicture2
Sparkles
Eye
MousePointer2
Menu
Info
CloudDownload
ArrowUpDown
Bell
Play
Pause
Refresh
ExternalLink
Trash
MoreHorizontal
Inbox
Send
Reply
Paperclip
Calendar
Ban
Download
Sun
Volume2
VolumeX
WifiOff
EthernetPort
Lucide ethernet-port — the RJ45 socket outline reads as
“cable” at 14 px where a plug icon does not.
Mic
MicOff
SkipForward
SkipBack
ArrowBigUp
The Shift key. Rendered filled for a latched Caps-Lock (see
Icon::draw_filled).
Delete
CornerDownLeft
Undo2
Undo — a leftward arrow curving back on itself. Lucide undo-2.
Redo2
Redo — the mirror of Icon::Undo2. Lucide redo-2.
TriangleAlert
A warning: Lucide triangle-alert.
PanelLeft
Show or hide the sidebar: a window with a rule near its leading
edge. Lucide panel-left.
PanelRight
Show or hide the inspector: the mirror of Icon::PanelLeft.
EyeOff
Phone
Link
MapPin
QrCode
ScanLine
SwitchCamera
User
UserPlus
Hash
Smile
SmilePlus
Video
PhoneOff
Lock
MessageSquare
Clock
AlarmClock
Hourglass
Bookmark
Tag
Rss
Upload
Type
Box
Contrast
Columns2
Palette
Crop
Usb
CircleCheck
Disc3
Bold
Italic
Underline
Strikethrough
Superscript
Subscript
Heading1
Heading2
ListOrdered
Quote
ReplyAll
Forward
MailOpen
AlignLeft
AlignCenter
AlignRight
AlignJustify
BringToFront
SendToBack
Baseline
Highlighter
Table
ListTree
Shuffle
Repeat
Repeat1
Heart
ListMusic
Speaker
Headphones
Gauge
LocateFixed
Flag
CornerUpLeft
CornerUpRight
ArrowUpLeft
ArrowUpRight
ArrowDownLeft
ArrowDownRight
Coffee
Utensils
Beer
Landmark
Trees
TrainFront
BedDouble
ShoppingBag
Hospital
Droplet
Wind
Cloud
CloudRain
CloudSnow
Moon
Hand
PawPrint
Plane
Trophy
Lightbulb
SdCard
An SD card: Lucide sd-card as it shipped before the set dropped it.
Brush
A paint brush. Lucide brush.
Circle
A circle, for an ellipse tool. Lucide circle.
Slash
A diagonal line. Lucide slash.
Pipette
An eyedropper that picks a colour. Lucide pipette.
Eraser
An eraser. Lucide eraser.
LockOpen
Unlocked. Lucide lock-open.
Unlink
Linked: moves with what it belongs to. Lucide link.
Unlinked: stays put on its own. Lucide unlink.
Bot
An agent. Lucide bot.
SquareDashed
A rectangle of an area being selected. Lucide square-dashed.
CircleDashed
An ellipse of an area being selected. Lucide circle-dashed.
Lasso
A freehand selection. Lucide lasso.
WandSparkles
Selecting by colour, a magic wand. Lucide wand-sparkles.
PaintBucket
Filling an area with colour. Lucide paint-bucket.
SquaresUnite
Shapes united into one. Lucide squares-unite.
SquaresSubtract
One shape taken out of another. Lucide squares-subtract.
SquaresIntersect
Only where shapes overlap. Lucide squares-intersect.
SquaresExclude
Where either shape is, but not both. Lucide squares-exclude.
SquareTerminal
A shell on another machine (SSH). Lucide square-terminal.
Another machine’s screen, shared (VNC). Lucide screen-share.
AppWindow
A desktop session in a window (RDP). Lucide app-window.
MonitorSmartphone
One of your own devices. Lucide monitor-smartphone.
AlignEndVertical
ALargeSmall
AlignCenterVertical
Fingerprint
AlignEndHorizontal
BatteryCharging
Accessibility
AlignStartVertical
AlignHorizontalDistributeCenter
CircleAlert
AlignVerticalDistributeCenter
AlignCenterHorizontal
AlignStartHorizontal
Implementations§
§impl Icon
impl Icon
pub fn from_name(name: &str) -> Option<Icon>
pub fn from_name(name: &str) -> Option<Icon>
The icon a lucide kebab name names, as Self::name spells it.
§impl Icon
impl Icon
pub fn draw(
self,
scene: &mut Scene,
transform: Affine,
rect: Rect,
color: AlphaColor<Srgb>,
)
pub fn draw( self, scene: &mut Scene, transform: Affine, rect: Rect, color: AlphaColor<Srgb>, )
Paint this glyph centred inside rect, stroked in color at the
concept’s default 1.5 px lucide width — equivalent to draw_icon
with self and LUCIDE_DEFAULT_STROKE_PX. Pass Affine::IDENTITY
for transform when rect is already in scene space.
pub fn draw_filled(
self,
scene: &mut Scene,
transform: Affine,
rect: Rect,
color: AlphaColor<Srgb>,
)
pub fn draw_filled( self, scene: &mut Scene, transform: Affine, rect: Rect, color: AlphaColor<Srgb>, )
Paint the icon as a solid fill rather than a stroked outline —
for glyphs that read as filled when “on” (starred, a selected pin).
Only closed sub-paths fill meaningfully; Star and similar
single-loop glyphs are authored closed for exactly this.
pub fn draw_with_stroke(
self,
scene: &mut Scene,
transform: Affine,
rect: Rect,
color: AlphaColor<Srgb>,
stroke_px: f64,
)
pub fn draw_with_stroke( self, scene: &mut Scene, transform: Affine, rect: Rect, color: AlphaColor<Srgb>, stroke_px: f64, )
Same as Icon::draw but with an explicit output stroke width in
pixels — use when a call site needs a heavier or lighter glyph than
the 1.5 px default (e.g. a large hero icon).
Trait Implementations§
impl Copy for Icon
impl Eq for Icon
impl StructuralPartialEq for Icon
Auto Trait Implementations§
impl Freeze for Icon
impl RefUnwindSafe for Icon
impl Send for Icon
impl Sync for Icon
impl Unpin for Icon
impl UnsafeUnpin for Icon
impl UnwindSafe for Icon
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more