12namespace hi::inline v1 {
13class selection_widget;
27 return _notifier.subscribe(
hi_forward(callback));
#define hi_forward(x)
Forward a value, based on the decltype of the value.
Definition required.hpp:29
A notifier which can be used to call a set of registered callbacks.
Definition notifier.hpp:23
Definition selection_delegate.hpp:15
virtual void set_selected(selection_widget &sender, ssize_t index) noexcept
Called when an option is selected by the user.
Definition selection_delegate.hpp:33
auto subscribe(selection_widget &sender, std::invocable<> auto &&callback) noexcept
Subscribe a callback for notifying the widget of a data change.
Definition selection_delegate.hpp:25
virtual std::pair< std::vector< label >, ssize_t > options_and_selected(selection_widget const &sender) const noexcept
Retrieve the label of an option.
Definition selection_delegate.hpp:37
A graphical control element that allows the user to choose only one of a predefined set of mutually e...
Definition selection_widget.hpp:37