HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
hi::v1::widget_delegate Struct Reference

Public Types

using notifier_type = notifier<void()>
 
using callback_type = notifier_type::callback_type
 

Public Member Functions

virtual void init (widget_intf const &sender) noexcept
 This function is called when a widget takes ownership of a delegate.
 
virtual void deinit (widget_intf const &sender) noexcept
 This function is called when a widget drops ownership of a delegate.
 
template<forward_of< void()> Func>
callback_type subscribe (Func &&func, callback_flags flags=callback_flags::synchronous) noexcept
 Subscribe a callback for notifying the widget of a data change.
 

Data Fields

notifier_type _notifier
 

Member Function Documentation

◆ deinit()

virtual void hi::v1::widget_delegate::deinit ( widget_intf const & sender)
inlinevirtualnoexcept

This function is called when a widget drops ownership of a delegate.

◆ init()

virtual void hi::v1::widget_delegate::init ( widget_intf const & sender)
inlinevirtualnoexcept

This function is called when a widget takes ownership of a delegate.

◆ subscribe()

template<forward_of< void()> Func>
callback_type hi::v1::widget_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 struct was generated from the following file: