|
HikoGUI
A low latency retained GUI
|
Public Types | |
| using | callback_ptr_type = std::shared_ptr<std::function<void()>> |
Public Member Functions | |
| virtual void | init (selection_widget &sender) noexcept |
| virtual void | deinit (selection_widget &sender) noexcept |
| virtual callback_ptr_type | subscribe (selection_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 (selection_widget &sender, Callback &&callback) noexcept |
| Subscribe a callback for notifying the widget of a data change. | |
| virtual void | unsubscribe (selection_widget &sender, callback_ptr_type const &callback) noexcept |
| Unsubscribe a callback. | |
| virtual void | set_selected (selection_widget &sender, ssize_t index) noexcept |
| Called when an option is selected by the user. | |
| virtual std::pair< std::vector< label >, ssize_t > | options_and_selected (selection_widget const &sender) const noexcept |
| Retrieve the label of an option. | |
|
inlinevirtualnoexcept |
Retrieve the label of an option.
Reimplemented in tt::default_selection_delegate< T >.
|
inlinevirtualnoexcept |
Called when an option is selected by the user.
| index | The index of the option selected, -1 if no option is selected. |
Reimplemented in tt::default_selection_delegate< T >.
|
inlinenoexcept |
Subscribe a callback for notifying the widget of a data change.
|
inlinevirtualnoexcept |
Subscribe a callback for notifying the widget of a data change.
Reimplemented in tt::default_selection_delegate< T >.
|
inlinevirtualnoexcept |
Unsubscribe a callback.
Reimplemented in tt::default_selection_delegate< T >.