A variable of type int, specifically for horizontal alignments of text. More...
#include "CompText.hpp"
Public Types | |
enum | { LEFT = -1, CENTER, RIGHT } |
Public Member Functions | |
VarTextAlignHorT (const char *Name, const int &Value, const char *Flags[]=NULL) | |
void | GetChoices (ArrayT< std::string > &Strings, ArrayT< int > &Values) const |
This method returns a list of acceptable input values for this variable, along with a string representation of each. More... | |
![]() | |
VarT (const char *Name, const int &Value, const char *Flags[]=NULL) | |
The constructor. More... | |
const int & | Get () const |
Returns the value of this variable. More... | |
virtual void | Set (const int &v) |
Sets the value of this variable to the given value v . More... | |
void | Serialize (Network::OutStreamT &Stream) const |
Stores the value of this variable in the given Stream. More... | |
void | Deserialize (Network::InStreamT &Stream) |
Restores the value of this variable from the given Stream. More... | |
void | accept (VisitorT &Visitor) |
void | accept (VisitorConstT &Visitor) const |
![]() | |
VarBaseT (const char *Name, const char *Flags[]) | |
const char * | GetName () const |
const char ** | GetFlags () const |
bool | HasFlag (const char *Flag) const |
const char * | GetFlag (const char *Flag, unsigned int Nr, const char *Default=NULL) const |
virtual std::string | GetExtraMessage () const |
Sometimes actions on variables generate extra messages that are relevant to the user. More... | |
A variable of type int, specifically for horizontal alignments of text.
|
virtual |
This method returns a list of acceptable input values for this variable, along with a string representation of each.
The relevancy of the returned tuples is limited: They are intended to create helpful user interfaces in our graphical editors and to provide extra information in scripts, but if Set() is called with a value that is not in Values
, it will work and is not an error. If the method returns no tuples at all, it means that user input is free and any value is acceptable.
Reimplemented from cf::TypeSys::VarT< int >.