Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CGUI.h
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | public: | ||||
bool HasPreDefinedColor(const CStr& name) const { return (m_PreDefinedColors.find(name) != m_PreDefinedColors.end()); } | bool HasPreDefinedColor(const CStr& name) const { return (m_PreDefinedColors.find(name) != m_PreDefinedColors.end()); } | ||||
/** | /** | ||||
* Resolve the predefined color if it exists, otherwise throws an exception. | * Resolve the predefined color if it exists, otherwise throws an exception. | ||||
*/ | */ | ||||
const CGUIColor& GetPreDefinedColor(const CStr& name) const { return m_PreDefinedColors.at(name); } | const CGUIColor& GetPreDefinedColor(const CStr& name) const { return m_PreDefinedColors.at(name); } | ||||
shared_ptr<ScriptInterface> GetScriptInterface() { return m_ScriptInterface; }; | shared_ptr<ScriptInterface> GetScriptInterface() { return m_ScriptInterface; }; | ||||
JS::Value GetGlobalObject() { return m_ScriptInterface->GetGlobalObject(); }; | |||||
private: | private: | ||||
/** | /** | ||||
* The CGUI takes ownership of the child object and links the parent with the child. | * The CGUI takes ownership of the child object and links the parent with the child. | ||||
* Returns false on failure to take over ownership of the child object. | * Returns false on failure to take over ownership of the child object. | ||||
*/ | */ | ||||
bool AddObject(IGUIObject& parent, IGUIObject& child); | bool AddObject(IGUIObject& parent, IGUIObject& child); | ||||
▲ Show 20 Lines • Show All 408 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator