JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::TextEditor::InputFilter Class Referenceabstract

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

#include <juce_TextEditor.h>

Inheritance diagram for juce::TextEditor::InputFilter:

Public Member Functions

 InputFilter ()=default
 
virtual ~InputFilter ()=default
 
virtual String filterNewText (TextEditor &, const 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()

juce::TextEditor::InputFilter::InputFilter ( )
default

◆ ~InputFilter()

virtual juce::TextEditor::InputFilter::~InputFilter ( )
virtualdefault

Member Function Documentation

◆ filterNewText()

virtual String juce::TextEditor::InputFilter::filterNewText ( TextEditor ,
const 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 juce::TextEditor::LengthAndCharacterRestriction.


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