HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
v1::selection_delegate Class Reference
Inheritance diagram for v1::selection_delegate:
v1::default_selection_delegate< T >

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_toptions_and_selected (selection_widget const &sender) const noexcept
 Retrieve the label of an option.
 

Member Function Documentation

◆ options_and_selected()

virtual std::pair< std::vector< label >, ssize_t > v1::selection_delegate::options_and_selected ( selection_widget const & sender) const
inlinevirtualnoexcept

Retrieve the label of an option.

Reimplemented in v1::default_selection_delegate< T >.

◆ set_selected()

virtual void v1::selection_delegate::set_selected ( selection_widget & sender,
ssize_t index )
inlinevirtualnoexcept

Called when an option is selected by the user.

Parameters
indexThe index of the option selected, -1 if no option is selected.

◆ subscribe()

auto v1::selection_delegate::subscribe ( selection_widget & sender,
std::invocable<> auto && callback )
inlinenoexcept

Subscribe a callback for notifying the widget of a data change.


The documentation for this class was generated from the following file: