|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
A push button. More...
#include <view.hpp>
Public Attributes | |
| Prop< std::string > | label |
| The caption. | |
| ButtonEmphasis | emphasis = ButtonEmphasis::Normal |
| How much it stands out; set once. | |
| Action | onClick |
| Called on activation. | |
| Common | common {} |
| Visibility, enablement, layout, drag-and-drop. | |
| std::string | icon |
| The name of an icon in the theme's icon set, drawn beside the caption; empty shows none. Set once. | |
| ButtonStyle | style = ButtonStyle::Push |
| A push button or a list entry; set once. | |
| Prop< bool > | selected = false |
| Whether a list entry is the current one. Only an Item takes it: the mount refuses a bound or true value on a push button. | |
| ButtonEmphasis morph::ui::Button::emphasis = ButtonEmphasis::Normal |
| Common morph::ui::Button::common {} |
| std::string morph::ui::Button::icon |
| ButtonStyle morph::ui::Button::style = ButtonStyle::Push |
| Prop<bool> morph::ui::Button::selected = false |