Skip to main content

Module button

Module button 

Source
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§

Size
Variant

Functions§

add_enabled
ui.add_enabled(enabled, button) for a Button: the button draws its disabled look AND egui sees a disabled widget, so on_disabled_hover_text still shows and on_hover_text stays hidden while it is off, exactly as for the egui::Button it replaces.