HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Data Structures | Namespaces | Functions
text_field_delegate.hpp File Reference

Defines delegate_field_delegate and some default text field delegates. More...

#include "../observer/observer.hpp"
#include "../utility/utility.hpp"
#include "../concurrency/concurrency.hpp"
#include "../dispatch/dispatch.hpp"
#include "../GUI/GUI.hpp"
#include "../macros.hpp"
#include "../l10n/l10n.hpp"
#include <string>
#include <string_view>
#include <optional>
#include <concepts>

Go to the source code of this file.

Data Structures

class  hi::v1::text_field_delegate
 A delegate that controls the state of a text_field_widget. More...
 
class  hi::v1::default_text_field_delegate< T >
 A default text delegate specialization for std::integral<T>. More...
 

Namespaces

namespace  hi
 The HikoGUI namespace.
 
namespace  hi::v1
 The HikoGUI API version 1.
 

Functions

 hi_export_module (hikogui.widgets.text_field_delegate)
 
template<typename Value >
requires requires { default_text_field_delegate<observer_decay_t<decltype(value)>>{std::forward<Value>(value)}; }
std::shared_ptr< text_field_delegatehi::v1::make_default_text_field_delegate (Value &&value) noexcept
 Create a shared pointer to a default text delegate.
 

Detailed Description

Defines delegate_field_delegate and some default text field delegates.