7 #ifndef CAFU_GUISYS_COMPONENT_TEXT_HPP_INCLUDED
8 #define CAFU_GUISYS_COMPONENT_TEXT_HPP_INCLUDED
10 #include "CompBase.hpp"
35 void Set(
const std::string& v);
50 enum { LEFT = -1, CENTER, RIGHT };
52 VarTextAlignHorT(
const char* Name,
const int& Value,
const char* Flags[]=NULL);
64 enum { TOP = -1, MIDDLE, BOTTOM };
66 VarTextAlignVerT(
const char* Name,
const int& Value,
const char* Flags[]=NULL);
90 const char*
GetName()
const {
return "Text"; }
104 static int toString(lua_State* LuaState);
107 static const char* DocClass;
117 void FillMemberVars();
void Set(const std::string &v)
Sets the value of this variable to the given value v.
Definition: CompText.cpp:59
const char * GetName() const
Returns the name of this component.
Definition: CompText.hpp:90
With this component, the user can edit the text in a sibling text component.
Definition: CompTextEdit.hpp:23
This components turns its window into a list-box control.
Definition: CompListBox.hpp:23
ComponentTextT * Clone() const
The virtual copy constructor.
Definition: CompText.cpp:265
void UpdateDependencies(WindowT *Window)
This method is called whenever something "external" to this component has changed: ...
Definition: CompText.cpp:271
A variable of type std::string, specifically for font names.
Definition: CompText.hpp:27
A variable of type int, specifically for horizontal alignments of text.
Definition: CompText.hpp:46
ComponentTextT()
The constructor.
Definition: CompText.cpp:217
This is a "wrapper" around a normal C++ variable.
Definition: SetCompVar.hpp:15
void SetText(const std::string &t)
This method sets this components text value.
Definition: CompText.hpp:83
This is the base class for the components that a window is composed/aggregated of.
Definition: CompBase.hpp:51
This components adds text to its window.
Definition: CompText.hpp:21
void AppendText(const std::string &t)
This method appends the given text to the components text value.
Definition: CompText.hpp:86
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 represen...
Definition: CompText.cpp:161
This class represents a window of the GuiSys.
Definition: Window.hpp:54
A class for rendering fonts that have been created with the Cafu MakeFont tool.
Definition: FontTT.hpp:22
void Render() const
This method implements the graphical output of this component.
Definition: CompText.cpp:311
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompText.hpp:106
A variable of type int, specifically for vertical alignments of text.
Definition: CompText.hpp:60
void GetChoices(ArrayT< std::string > &Strings, ArrayT< std::string > &Values) const
This method returns a list of acceptable input values for this variable, along with a string represen...
Definition: CompText.cpp:75
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 represen...
Definition: CompText.cpp:179
virtual void Set(const T &v)
Sets the value of this variable to the given value v.
Definition: Variables.hpp:189
Definition: TypeSys.hpp:52
Definition: TypeSys.hpp:57
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:79
const T & Get() const
Returns the value of this variable.
Definition: Variables.hpp:182
Definition: TypeSys.hpp:68