|
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 cancel_features_type | features () const noexcept |
| Used by the widget to determine if it can stop.
|
|
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.