Egui::Button
Inherits Egui::Widget < Reference < Object
Constructors
Instance methods
CSS cursor style for this button — the icon the mouse shows
while hovering it (default: style.visuals.interact_cursor).
Vertical gradient fill (top c1 → bottom c2); overrides the plain state fill.
An SVG icon (e.g. Icon.from_file(:lucide, :save, tint: fg)),
drawn left of the text; takes precedence over the Symbol
vector icon, below a raster texture.
A raster icon: texture drawn left of the text (phase 6; takes precedence over the vector icon).
Short human label for the inspector (the button's text, a label's text…); nil = no meaningful label.
egui Button::min_size — the button never shrinks below this
(text stays centered inside); the hook behind Ui#big_button.
CSS-like class this widget styles under in the global
StyleSheet (nil = not registered yet). Widgets adopt the class
system gradually; see Button and containers/sidebar.cr for
the reference wiring (base + state overlays).
Every key #ui reads: the common button set plus the box-model
and 3D-bevel/shadow extras (see default_theme.cr for the
defaults). Declared here — the inspector renders what it's told.