HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/async_delegate.hpp>
Public Types | |
using | result_type = ResultType |
Public Member Functions | |
template<typename Func , typename... Args> | |
default_async_delegate (Func &&func, Args &&... args) noexcept | |
Construct a delegate. | |
Public Member Functions inherited from hi::v1::async_delegate | |
virtual void | init (widget_intf const &sender) noexcept |
virtual void | deinit (widget_intf const &sender) noexcept |
template<forward_of< void()> Func> | |
callback< void()> | subscribe (Func &&func, callback_flags flags=callback_flags::synchronous) noexcept |
Subscribe a callback for notifying the widget of a data change. | |
A default async button delegate.
The default async button delegate manages the state of a button widget using observer values.
Traits | The traits of the arguments passed to the constructor. |
|
inlinenoexcept |
Construct a delegate.
func | The function to be called when the button is pressed |
args... | The arguments passed to the function |