|
virtual void | init (widget_intf const &sender) noexcept |
|
virtual void | deinit (widget_intf const &sender) noexcept |
|
virtual void | activate (widget_intf const &sender) noexcept |
| Called when the button is pressed by the user.
|
|
virtual widget_value | state (widget_intf const &sender) const noexcept |
| Used by the widget to check the state of the button.
|
|
template<forward_of< void()> Func> |
callback< void()> | subscribe (Func &&func, callback_flags flags=callback_flags::synchronous) noexcept |
| Subscribe a callback for notifying the widget of a data change.
|
|
A button delegate controls the state of a button widget.