Changeset View
Changeset View
Standalone View
Standalone View
source/gui/IGUIObject.h
Show All 29 Lines | |||||
#include "gui/CGUI.h" | #include "gui/CGUI.h" | ||||
#include "gui/GUIbase.h" | #include "gui/GUIbase.h" | ||||
#include "gui/scripting/JSInterface_IGUIObject.h" | #include "gui/scripting/JSInterface_IGUIObject.h" | ||||
#include "lib/input.h" // just for IN_PASS | #include "lib/input.h" // just for IN_PASS | ||||
#include "ps/XML/Xeromyces.h" | #include "ps/XML/Xeromyces.h" | ||||
#include <string> | #include <string> | ||||
#include <vector> | #include <vector> | ||||
#include <unordered_map> | |||||
struct SGUIStyle; | struct SGUIStyle; | ||||
class JSObject; | class JSObject; | ||||
class IGUISetting; | class IGUISetting; | ||||
template <typename T> class GUI; | template <typename T> class GUI; | ||||
ERROR_TYPE(GUI, UnableToParse); | ERROR_TYPE(GUI, UnableToParse); | ||||
▲ Show 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | protected: | ||||
* Settings pool, all an object's settings are located here | * Settings pool, all an object's settings are located here | ||||
* If a derived object has got more settings that the base | * If a derived object has got more settings that the base | ||||
* settings, it's because they have a new version of the | * settings, it's because they have a new version of the | ||||
* function SetupSettings(). | * function SetupSettings(). | ||||
* | * | ||||
* @see SetupSettings() | * @see SetupSettings() | ||||
*/ | */ | ||||
public: | public: | ||||
std::map<CStr, IGUISetting*> m_Settings; | std::unordered_map<std::string, IGUISetting*> m_Settings; | ||||
protected: | protected: | ||||
// An object can't function stand alone | // An object can't function stand alone | ||||
CGUI& m_pGUI; | CGUI& m_pGUI; | ||||
// Internal storage for registered script handlers. | // Internal storage for registered script handlers. | ||||
std::map<CStr, JS::Heap<JSObject*> > m_ScriptHandlers; | std::map<CStr, JS::Heap<JSObject*> > m_ScriptHandlers; | ||||
Show All 22 Lines |
Wildfire Games · Phabricator