7 #ifndef CAFU_GUISYS_COMPONENT_TEXT_EDIT_HPP_INCLUDED
8 #define CAFU_GUISYS_COMPONENT_TEXT_EDIT_HPP_INCLUDED
10 #include "CompBase.hpp"
36 const char*
GetName()
const {
return "TextEdit"; }
51 static int SetText(lua_State* LuaState);
52 static int toString(lua_State* LuaState);
55 static const char* DocClass;
67 VarCursorTypeT(
const char* Name,
const int& Value,
const char* Flags[]=NULL);
78 VarCursorTypeT m_CursorType;
With this component, the user can edit the text in a sibling text component.
Definition: CompTextEdit.hpp:23
ComponentTextEditT * Clone() const
The virtual copy constructor.
Definition: CompTextEdit.cpp:107
This class implements smart (reference-counted) pointers.
Definition: Pointer.hpp:43
void UpdateDependencies(WindowT *Window)
This method is called whenever something "external" to this component has changed: ...
Definition: CompTextEdit.cpp:113
This is a "wrapper" around a normal C++ variable.
Definition: SetCompVar.hpp:15
This is the base class for the components that a window is composed/aggregated of.
Definition: CompBase.hpp:51
void OnClockTickEvent(float t)
This method handles clock-tick events.
Definition: CompTextEdit.cpp:308
ComponentTextEditT()
The constructor.
Definition: CompTextEdit.cpp:71
This struct describes a keyboard event.
Definition: OpenGLWindow.hpp:20
This class represents a window of the GuiSys.
Definition: Window.hpp:54
bool OnInputEvent(const CaKeyboardEventT &KE)
This method handles keyboard input events.
Definition: CompTextEdit.cpp:225
const char * GetName() const
Returns the name of this component.
Definition: CompTextEdit.hpp:36
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompTextEdit.hpp:54
void Render() const
This method implements the graphical output of this component.
Definition: CompTextEdit.cpp:132
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
Definition: TypeSys.hpp:68