TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::TextConverter< T > Struct Template Reference

#include <gui_core/text/gui_text_converter.h>

Inheritance diagram for tachyon::TextConverter< T >:

Public Member Functions

std::string Format (const T &value, bool editing) const
bool Parse (std::string_view text, T &value) const
bool AcceptsCharacter (uint32_t codepoint) const override
 Whether typing codepoint can be part of the text.
bool Filter (std::string &text) const override
 Strips what the text can't hold (pasted or dropped text, a typed character); true if Text changed.
bool AcceptsComposition () const override
 Whether an IME may compose text into the field.
Public Member Functions inherited from tachyon::ITextValidator
virtual ~ITextValidator ()=default

Member Function Documentation

◆ Format()

template<NumericFieldType T>
std::string tachyon::TextConverter< T >::Format ( const T & value,
bool editing ) const
inline

◆ Parse()

template<NumericFieldType T>
bool tachyon::TextConverter< T >::Parse ( std::string_view text,
T & value ) const
inline

◆ AcceptsCharacter()

template<NumericFieldType T>
bool tachyon::TextConverter< T >::AcceptsCharacter ( uint32_t codepoint) const
inlineoverridevirtual

Whether typing codepoint can be part of the text.

Reimplemented from tachyon::ITextValidator.

◆ Filter()

template<NumericFieldType T>
bool tachyon::TextConverter< T >::Filter ( std::string & text) const
inlineoverridevirtual

Strips what the text can't hold (pasted or dropped text, a typed character); true if Text changed.

Reimplemented from tachyon::ITextValidator.

◆ AcceptsComposition()

template<NumericFieldType T>
bool tachyon::TextConverter< T >::AcceptsComposition ( ) const
inlineoverridevirtual

Whether an IME may compose text into the field.

Reimplemented from tachyon::ITextValidator.


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