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

Public Member Functions

virtual void init (abstract_button_widget &sender) noexcept
 
virtual void deinit (abstract_button_widget &sender) noexcept
 
auto subscribe (abstract_button_widget &sender, std::invocable<> auto &&callback) noexcept
 Subscribe a callback for notifying the widget of a data change.
 
virtual void activate (abstract_button_widget &sender) noexcept
 Called when the button is pressed by the user.
 
virtual button_state state (abstract_button_widget const &sender) const noexcept
 Used by the widget to check the state of the button.
 

Member Function Documentation

◆ activate()

virtual void v1::button_delegate::activate ( abstract_button_widget & sender)
inlinevirtualnoexcept

Called when the button is pressed by the user.

◆ state()

virtual button_state v1::button_delegate::state ( abstract_button_widget const & sender) const
inlinevirtualnoexcept

Used by the widget to check the state of the button.

◆ subscribe()

auto v1::button_delegate::subscribe ( abstract_button_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: