Public Member Functions | Protected Attributes | List of all members
sf::ui::DefaultTextFieldModel Class Reference

The default textfield model

. More...

#include <DefaultTextFieldModel.hpp>

Inheritance diagram for sf::ui::DefaultTextFieldModel:
sf::ui::BlacklistTextFieldModel sf::ui::TextFieldModel

Public Member Functions

 DefaultTextFieldModel ()
 The default text field model used It allows all character excluding 0(NUL) - 31(US) and 127(DEL) More...
 
virtual bool isCharAllowed (sf::Uint32 c) const
 
void addCharDenied (sf::Uint32 c)
 Add a character to the blacklist. More...
 
void rmCharDenied (sf::Uint32 c)
 Removes a character to the blacklist. More...
 
std::vector< sf::Uint32 > getCharsDenied () const
 

Protected Attributes

std::set< sf::Uint32 > m_blacklist
 

Detailed Description

The default textfield model

.

Definition at line 28 of file DefaultTextFieldModel.hpp.

Constructor & Destructor Documentation

sf::ui::DefaultTextFieldModel::DefaultTextFieldModel ( )

The default text field model used It allows all character excluding 0(NUL) - 31(US) and 127(DEL)

Member Function Documentation

void sf::ui::BlacklistTextFieldModel::addCharDenied ( sf::Uint32  c)
inherited

Add a character to the blacklist.

Parameters
cthe character to deny
std::vector<sf::Uint32> sf::ui::BlacklistTextFieldModel::getCharsDenied ( ) const
inherited
Returns
all of the chars blacklisted
virtual bool sf::ui::BlacklistTextFieldModel::isCharAllowed ( sf::Uint32  c) const
virtualinherited
Returns
if the given character is allowed for the text field
Parameters
cthe character to check

Implements sf::ui::TextFieldModel.

void sf::ui::BlacklistTextFieldModel::rmCharDenied ( sf::Uint32  c)
inherited

Removes a character to the blacklist.

Parameters
cthe character to allow

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