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

#include <hikogui/widgets/tab_delegate.hpp>

Inheritance diagram for hi::v1::tab_delegate:
hi::v1::default_tab_delegate< T >

Public Member Functions

virtual void init (widget_intf const &sender) noexcept
 
virtual void deinit (widget_intf const &sender) noexcept
 
virtual void add_tab (widget_intf const &sender, std::size_t key, std::size_t index) noexcept
 
virtual std::ptrdiff_t index (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.
 

Detailed Description

A delegate that controls the state of a tab_widget.

Member Function Documentation

◆ subscribe()

template<forward_of< void()> Func>
callback< void()> hi::v1::tab_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: