HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
hi::v1::async_delegate Class Reference

#include <hikogui/widgets/async_delegate.hpp>

Inheritance diagram for hi::v1::async_delegate:
hi::v1::default_async_delegate< ResultType >

Public Member Functions

virtual void init (widget_intf const &sender) noexcept
 
virtual void deinit (widget_intf const &sender) noexcept
 
virtual void activate (widget_intf const &sender) noexcept
 Called when the button is pressed by the user.
 
virtual cancel_features_type features () const noexcept
 Used by the widget to determine if it can stop.
 
virtual widget_value state (widget_intf const &sender) const noexcept
 Used by the widget to check the state of the button.
 
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.
 

Detailed Description

A button delegate controls the state of a button widget.

Member Function Documentation

◆ activate()

virtual void hi::v1::async_delegate::activate ( widget_intf const & sender)
inlinevirtualnoexcept

Called when the button is pressed by the user.

◆ features()

virtual cancel_features_type hi::v1::async_delegate::features ( ) const
inlinevirtualnoexcept

Used by the widget to determine if it can stop.

◆ state()

virtual widget_value hi::v1::async_delegate::state ( widget_intf const & sender) const
inlinevirtualnoexcept

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

◆ subscribe()

template<forward_of< void()> Func>
callback< void()> hi::v1::async_delegate::subscribe ( Func && func,
callback_flags flags = callback_flags::synchronous )
inlinenoexcept

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


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