TinyMaterialDesign
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TextInputTarget Class Referenceabstract

#include <TextInputTarget.h>

Inheritance diagram for TextInputTarget:
Inheritance graph
[legend]

Public Member Functions

virtual ~TextInputTarget ()=default
 
virtual InputType inputType () const
 The kind of input - Keyboard picks its layout from it. Default: text.
 
virtual void insertChar (char c)=0
 
virtual void backspace ()=0
 
virtual void blur ()=0
 
virtual bool handleEnter ()=0
 

Constructor & Destructor Documentation

◆ ~TextInputTarget()

virtual ~TextInputTarget ( )
virtualdefault

Member Function Documentation

◆ backspace()

virtual void backspace ( )
pure virtual

◆ blur()

virtual void blur ( )
pure virtual

◆ handleEnter()

virtual bool handleEnter ( )
pure virtual

Called when the keyboard's Done key is tapped (a separate Enter key handles literal newlines via insertChar('
') directly, without going through this).

Returns
true if the keyboard should hide itself afterward - both TextField and TextArea return true here, since Done always means "finished editing", but the interface leaves room for a future field that wants Done to keep editing open instead.

Implemented in SearchBar< RGB_T >, TextArea< RGB_T >, TextField< RGB_T >, and TextField< TINYMD_DEFAULT_RGB_T >.

◆ inputType()

virtual InputType inputType ( ) const
inlinevirtual

The kind of input - Keyboard picks its layout from it. Default: text.

Reimplemented in TextField< RGB_T >, and TextField< TINYMD_DEFAULT_RGB_T >.

◆ insertChar()

virtual void insertChar ( char  c)
pure virtual

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