 |
Gorgon Game Engine
|
Go to the documentation of this file.
6 namespace Gorgon {
namespace UI {
55 bool AllowInsert(std::string , std::string , std::string )
const {
60 bool AllowErase(std::string ,
int , std::string )
const {
65 bool AllowReplace(std::string ,
int , std::string , std::string )
const {
71 return String::To<Type>(text);
Widgets::Generator * generator
Definition: UI.cpp:9
std::enable_if< decltype(gorgon__enum_tr_loc(T_()))::isupgradedenum, std::string >::type From(const T_ &e)
Definition: Enum.h:303
Accepts all input and tries to convert using in-library functions.
Definition: Validators.h:45
bool AllowErase(std::string, int, std::string) const
Checks if given number of characters can be erased from before.
Definition: Validators.h:60
bool IsValid(std::string) const
Checks if the given string is valid.
Definition: Validators.h:50
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
static Monitor & Primary()
Returns the default monitor.
Definition: WindowManager.h:122
void Initialize(std::string fontname="", float density=7.5, int min=9)
Initializes the UI system.
Definition: UI.cpp:12
Type From(std::string text) const
Converts the given string to the type. If input is not valid, return initial value.
Definition: Validators.h:70
bool AllowReplace(std::string, int, std::string, std::string) const
Checks if given number of characters can be replace with insert at the end of before.
Definition: Validators.h:65
bool AllowInsert(std::string, std::string, std::string) const
Checks if given string can be inserted between start and end.
Definition: Validators.h:55
std::string ToString(const Type &value) const
Converts the given value to string.
Definition: Validators.h:75
T_ Type
Definition: Validators.h:47