Gin
Public Member Functions | List of all members
SingleLineTextEditor::InputFilter Class Referenceabstract

Base class for input filters that can be applied to a TextEditor to restrict the text that can be entered. More...

Inheritance diagram for SingleLineTextEditor::InputFilter:

Public Member Functions

 InputFilter ()
 
virtual ~InputFilter ()
 
virtual juce::String filterNewText (SingleLineTextEditor &, const juce::String &newInput)=0
 This method is called whenever text is entered into the editor. More...
 

Detailed Description

Base class for input filters that can be applied to a TextEditor to restrict the text that can be entered.

Constructor & Destructor Documentation

◆ InputFilter()

SingleLineTextEditor::InputFilter::InputFilter ( )

◆ ~InputFilter()

virtual SingleLineTextEditor::InputFilter::~InputFilter ( )
virtual

Member Function Documentation

◆ filterNewText()

virtual juce::String SingleLineTextEditor::InputFilter::filterNewText ( SingleLineTextEditor ,
const juce::String &  newInput 
)
pure virtual

This method is called whenever text is entered into the editor.

An implementation of this class should should check the input string, and return an edited version of it that should be used.

Implemented in SingleLineTextEditor::LengthAndCharacterRestriction.


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