HikoGUI
A low latency retained GUI
|
#include <hikogui/widgets/text_delegate.hpp>
Public Member Functions | |
virtual void | init (widget_intf const &sender) noexcept |
virtual void | deinit (widget_intf const &sender) noexcept |
virtual gstring | read (widget_intf const &sender) noexcept=0 |
Read text as a string of graphemes. | |
virtual void | write (widget_intf const &sender, gstring const &text) noexcept=0 |
Write text from a string of graphemes. | |
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. | |
A delegate that controls the state of a text_widget.
|
pure virtualnoexcept |
Read text as a string of graphemes.
Implemented in hi::v1::default_text_delegate< char const * >, hi::v1::default_text_delegate< std::string >, hi::v1::default_text_delegate< gstring >, and hi::v1::default_text_delegate< txt >.
|
inlinenoexcept |
Subscribe a callback for notifying the widget of a data change.
|
pure virtualnoexcept |
Write text from a string of graphemes.
Implemented in hi::v1::default_text_delegate< char const * >, hi::v1::default_text_delegate< std::string >, hi::v1::default_text_delegate< gstring >, and hi::v1::default_text_delegate< txt >.