7 #ifndef CAFU_GUISYS_COMPONENT_LISTBOX_HPP_INCLUDED
8 #define CAFU_GUISYS_COMPONENT_LISTBOX_HPP_INCLUDED
10 #include "CompBase.hpp"
36 const char*
GetName()
const {
return "ListBox"; }
52 static int GetSelItem(lua_State* LuaState);
53 static int toString(lua_State* LuaState);
56 static const char* DocClass;
This class implements smart (reference-counted) pointers.
Definition: Pointer.hpp:43
This components turns its window into a list-box control.
Definition: CompListBox.hpp:23
bool OnInputEvent(const CaKeyboardEventT &KE)
This method handles keyboard input events.
Definition: CompListBox.cpp:249
This struct describes a mouse event.
Definition: OpenGLWindow.hpp:185
This is the base class for the components that a window is composed/aggregated of.
Definition: CompBase.hpp:51
ComponentListBoxT()
The constructor.
Definition: CompListBox.cpp:66
static const luaL_Reg MethodsList[]
The list of Lua methods for this class.
Definition: CompListBox.hpp:55
void Render() const
This method implements the graphical output of this component.
Definition: CompListBox.cpp:143
This struct describes a keyboard event.
Definition: OpenGLWindow.hpp:20
const char * GetName() const
Returns the name of this component.
Definition: CompListBox.hpp:36
This class represents a window of the GuiSys.
Definition: Window.hpp:54
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
void UpdateDependencies(WindowT *Window)
This method is called whenever something "external" to this component has changed: ...
Definition: CompListBox.cpp:126
Definition: TypeSys.hpp:68
ComponentListBoxT * Clone() const
The virtual copy constructor.
Definition: CompListBox.cpp:120