HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | 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 Types

using notifier_type = notifier<>
 
using callback_token = notifier_type::callback_token
 
using callback_proto = notifier_type::callback_proto
 

Public Member Functions

virtual void init (tab_widget &sender) noexcept
 
virtual void deinit (tab_widget &sender) noexcept
 
virtual void add_tab (tab_widget &sender, std::size_t key, std::size_t index) noexcept
 
virtual ssize_t index (tab_widget &sender) noexcept
 
callback_token subscribe (forward_of< callback_proto > auto &&callback, 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()

callback_token hi::v1::tab_delegate::subscribe ( forward_of< callback_proto > auto && callback,
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: