|
HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/button_delegate.hpp>
Public Types | |
| using | notifier_type = notifier<> |
| using | callback_token = notifier_type::callback_token |
| using | callback_proto = notifier_type::callback_proto |
Public Member Functions | |
| virtual void | init (abstract_button_widget &sender) noexcept |
| virtual void | deinit (abstract_button_widget &sender) noexcept |
| virtual void | activate (abstract_button_widget &sender) noexcept |
| Called when the button is pressed by the user. | |
| virtual button_state | state (abstract_button_widget const &sender) const noexcept |
| Used by the widget to check the state of the button. | |
| callback_token | subscribe (forward_of< callback_proto > auto &&callback, 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.
|
inlinevirtualnoexcept |
Called when the button is pressed by the user.
|
inlinevirtualnoexcept |
Used by the widget to check the state of the button.
|
inlinenoexcept |
Subscribe a callback for notifying the widget of a data change.