|
HikoGUI
A low latency retained GUI
|
Public Types | |
| using | callback_ptr_type = std::shared_ptr<std::function<void()>> |
Public Member Functions | |
| virtual void | init (abstract_button_widget &sender) noexcept |
| virtual void | deinit (abstract_button_widget &sender) noexcept |
| virtual callback_ptr_type | subscribe (abstract_button_widget &sender, callback_ptr_type const &callback) noexcept |
| Subscribe a callback for notifying the widget of a data change. | |
| template<typename Callback > requires (std::is_invocable_v<Callback>) | |
| callback_ptr_type | subscribe (abstract_button_widget &sender, Callback &&callback) noexcept |
| Subscribe a callback for notifying the widget of a data change. | |
| virtual void | unsubscribe (abstract_button_widget &sender, callback_ptr_type const &callback) noexcept |
| Unsubscribe a callback. | |
| 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. | |
|
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.
|
inlinevirtualnoexcept |
Subscribe a callback for notifying the widget of a data change.
|
inlinevirtualnoexcept |
Unsubscribe a callback.