openshot-audio  0.1.4
Public Member Functions | List of all members
TextEditor::LengthAndCharacterRestriction Class Reference

#include <juce_TextEditor.h>

Inheritance diagram for TextEditor::LengthAndCharacterRestriction:
TextEditor::InputFilter

Public Member Functions

 LengthAndCharacterRestriction (int maxNumChars, const String &allowedCharacters)
 
- Public Member Functions inherited from TextEditor::InputFilter
 InputFilter ()
 
virtual ~InputFilter ()
 

Detailed Description

An input filter for a TextEditor that limits the length of text and/or the characters that it may contain.

Constructor & Destructor Documentation

◆ LengthAndCharacterRestriction()

TextEditor::LengthAndCharacterRestriction::LengthAndCharacterRestriction ( int  maxNumChars,
const String allowedCharacters 
)

Creates a filter that limits the length of text, and/or the characters that it can contain.

Parameters
maxNumCharsif this is > 0, it sets a maximum length limit; if <= 0, no limit is set
allowedCharactersif this is non-empty, then only characters that occur in this string are allowed to be entered into the editor.

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