Public Member Functions | List of all members
sf::ui::TextFieldModel Class Referenceabstract

The abstract class that defines what can be typed into the text field

. More...

#include <TextFieldModel.hpp>

Inheritance diagram for sf::ui::TextFieldModel:
sf::ui::AsciiNoSpaceTextFieldModel sf::ui::AsciiTextFieldModel sf::ui::BlacklistTextFieldModel sf::ui::WhitelistTextFieldModel sf::ui::DefaultTextFieldModel sf::ui::AlphaNumericTextFieldModel sf::ui::AlphaTextFieldModel sf::ui::NumericTextFieldModel

Public Member Functions

 TextFieldModel ()
 An abstract class that controls if the text field should or not allow a given character. More...
 
virtual bool isCharAllowed (sf::Uint32 c) const =0
 

Detailed Description

The abstract class that defines what can be typed into the text field

.

Definition at line 28 of file TextFieldModel.hpp.

Constructor & Destructor Documentation

sf::ui::TextFieldModel::TextFieldModel ( )

An abstract class that controls if the text field should or not allow a given character.

Member Function Documentation

virtual bool sf::ui::TextFieldModel::isCharAllowed ( sf::Uint32  c) const
pure virtual
Returns
if the given character is allowed for the text field
Parameters
c- the character to check

Implemented in sf::ui::WhitelistTextFieldModel, sf::ui::BlacklistTextFieldModel, sf::ui::AsciiNoSpaceTextFieldModel, and sf::ui::AsciiTextFieldModel.


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