Expand description
Buttons: primary, secondary, ghost and danger, in two sizes, with an optional leading icon, trailing shortcut text and a busy state.
Structs§
- Button
- A button.
ui.add(Button::new("Apply").variant(Variant::Primary)).
Enums§
Functions§
- add_
enabled ui.add_enabled(enabled, button)for aButton: the button draws its disabled look AND egui sees a disabled widget, soon_disabled_hover_textstill shows andon_hover_textstays hidden while it is off, exactly as for theegui::Buttonit replaces.