13class selection_widget;
34 template<
typename Callback>
35 requires(std::is_invocable_v<Callback>) [[nodiscard]] callback_ptr_type
Definition selection_delegate.hpp:15
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:52
callback_ptr_type subscribe(selection_widget &sender, Callback &&callback) noexcept
Subscribe a callback for notifying the widget of a data change.
Definition selection_delegate.hpp:36
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.
Definition selection_delegate.hpp:27
virtual void set_selected(selection_widget &sender, ssize_t index) noexcept
Called when an option is selected by the user.
Definition selection_delegate.hpp:48
virtual void unsubscribe(selection_widget &sender, callback_ptr_type const &callback) noexcept
Unsubscribe a callback.
Definition selection_delegate.hpp:43
A graphical control element that allows the user to choose only one of a predefined set of mutually e...
Definition selection_widget.hpp:37