A textfield model that allows some chars
.
More...
#include <WhitelistTextFieldModel.hpp>
|
std::set< sf::Uint32 > | m_whitelist |
|
A textfield model that allows some chars
.
Definition at line 30 of file WhitelistTextFieldModel.hpp.
sf::ui::WhitelistTextFieldModel::WhitelistTextFieldModel |
( |
| ) |
|
Creates a text field model that allows only character present in the whitelist Notice that the whitelist is empty in this class.
void sf::ui::WhitelistTextFieldModel::addCharAllowed |
( |
sf::Uint32 |
c | ) |
|
Add a character to the whitelist.
- Parameters
-
std::vector<sf::Uint32> sf::ui::WhitelistTextFieldModel::getCharsAllowed |
( |
| ) |
const |
- Returns
- all of the chars whitelisted
virtual bool sf::ui::WhitelistTextFieldModel::isCharAllowed |
( |
sf::Uint32 |
c | ) |
const |
|
virtual |
void sf::ui::WhitelistTextFieldModel::rmCharAllowed |
( |
sf::Uint32 |
c | ) |
|
Remove a character to the whitelist.
- Parameters
-
c | the character to disallow |
The documentation for this class was generated from the following file: