TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::ITextValidator Class Reference

What an editable field takes as text, asked while it is edited. More...

#include <gui_core/text/gui_text_converter.h>

Inheritance diagram for tachyon::ITextValidator:

Public Member Functions

virtual ~ITextValidator ()=default
virtual bool AcceptsCharacter (uint32_t) const
 Whether typing codepoint can be part of the text.
virtual bool Filter (std::string &) const
 Strips what the text can't hold (pasted or dropped text, a typed character); true if Text changed.
virtual bool AcceptsComposition () const
 Whether an IME may compose text into the field.

Detailed Description

What an editable field takes as text, asked while it is edited.

An instance given to the text system must outlive the field (a static or a member, not a temporary).

Constructor & Destructor Documentation

◆ ~ITextValidator()

virtual tachyon::ITextValidator::~ITextValidator ( )
virtualdefault

Member Function Documentation

◆ AcceptsCharacter()

virtual bool tachyon::ITextValidator::AcceptsCharacter ( uint32_t ) const
inlinevirtual

Whether typing codepoint can be part of the text.

Reimplemented in tachyon::TextConverter< T >.

◆ Filter()

virtual bool tachyon::ITextValidator::Filter ( std::string & ) const
inlinevirtual

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

Reimplemented in tachyon::TextConverter< T >.

◆ AcceptsComposition()

virtual bool tachyon::ITextValidator::AcceptsComposition ( ) const
inlinevirtual

Whether an IME may compose text into the field.

Reimplemented in tachyon::TextConverter< T >.


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