7 #ifndef CAFU_GUISYS_COMPONENT_WINDOW_BASICS_HPP_INCLUDED
8 #define CAFU_GUISYS_COMPONENT_WINDOW_BASICS_HPP_INCLUDED
10 #include "CompBase.hpp"
35 bool IsShown()
const {
return m_Show.Get(); }
45 const char*
GetName()
const {
return "Basics"; }
57 static int toString(lua_State* LuaState);
60 static const char* DocClass;
74 WindowNameT(
const char* Name,
const std::string& Value,
const char* Flags[],
ComponentBasicsT& CompBasics);
78 void Set(
const std::string& v);
92 WindowShowT(
const char* Name,
const bool& Value,
const char* Flags[],
ComponentBasicsT& CompBasics);
96 void Set(
const bool& v);
const char * GetName() const
Returns the name of this component.
Definition: CompBasics.hpp:45
This component adds the basics of the window (its name and the "is shown?" flag). ...
Definition: CompBasics.hpp:20
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompBasics.hpp:59
void SetWindowName(const std::string &Name)
Sets a new name for the window.
Definition: CompBasics.hpp:41
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
ComponentBasicsT()
The constructor.
Definition: CompBasics.cpp:138
const std::string & GetWindowName() const
Returns the name of the window.
Definition: CompBasics.hpp:32
bool IsShown() const
Returns true if the window is currently shown. Returns false if the window is currently hidden...
Definition: CompBasics.hpp:35
ComponentBasicsT * Clone() const
The virtual copy constructor.
Definition: CompBasics.cpp:158
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