|
HikoGUI
A low latency retained GUI
|
Public Member Functions | |
| virtual void | init (selection_widget &sender) noexcept |
| virtual void | deinit (selection_widget &sender) noexcept |
| auto | subscribe (selection_widget &sender, std::invocable<> auto &&callback) noexcept |
| Subscribe a callback for notifying the widget of a data change. | |
| 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 v1::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. |
|
inlinenoexcept |
Subscribe a callback for notifying the widget of a data change.