HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
hi::v1::default_radio_delegate< T > Class Template Reference

#include <hikogui/widgets/radio_delegate.hpp>

Inheritance diagram for hi::v1::default_radio_delegate< T >:
hi::v1::radio_delegate

Public Types

using value_type = T
 

Public Member Functions

template<forward_of< observer< value_type > > Value, forward_of< observer< value_type > > OnValue>
 default_radio_delegate (Value &&value, OnValue &&on_value) noexcept
 Construct a delegate.
 
- Public Member Functions inherited from hi::v1::radio_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.
 

Data Fields

observer< value_type > value
 
observer< value_type > on_value
 

Detailed Description

template<std::equality_comparable T>
class hi::v1::default_radio_delegate< T >

A default radio button delegate.

The default radio button delegate manages the state of a radio widget using observer values.

Template Parameters
TThe type of the observer value.

Constructor & Destructor Documentation

◆ default_radio_delegate()

template<std::equality_comparable T>
template<forward_of< observer< value_type > > Value, forward_of< observer< value_type > > OnValue>
hi::v1::default_radio_delegate< T >::default_radio_delegate ( Value && value,
OnValue && on_value )
inlinenoexcept

Construct a delegate.

Parameters
valueA value or observer-value used as a representation of the state.
on_valueThe value or observer-value that mean 'on'.

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