Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/GUIManager.h
Show All 22 Lines | |||||
#include "lib/input.h" | #include "lib/input.h" | ||||
#include "lib/file/vfs/vfs_path.h" | #include "lib/file/vfs/vfs_path.h" | ||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#include "ps/TemplateLoader.h" | #include "ps/TemplateLoader.h" | ||||
#include "scriptinterface/ScriptVal.h" | #include "scriptinterface/ScriptVal.h" | ||||
#include "scriptinterface/ScriptInterface.h" | #include "scriptinterface/ScriptInterface.h" | ||||
#include <string> | |||||
class CGUI; | class CGUI; | ||||
class JSObject; | class JSObject; | ||||
class IGUIObject; | class IGUIObject; | ||||
struct CGUIColor; | struct CGUIColor; | ||||
struct SGUIIcon; | struct SGUIIcon; | ||||
/** | /** | ||||
* External interface to the GUI system. | * External interface to the GUI system. | ||||
▲ Show 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | struct SGUIPage | ||||
shared_ptr<JS::PersistentRootedValue> callbackFunction; | shared_ptr<JS::PersistentRootedValue> callbackFunction; | ||||
}; | }; | ||||
shared_ptr<CGUI> top() const; | shared_ptr<CGUI> top() const; | ||||
shared_ptr<ScriptRuntime> m_ScriptRuntime; | shared_ptr<ScriptRuntime> m_ScriptRuntime; | ||||
shared_ptr<ScriptInterface> m_ScriptInterface; | shared_ptr<ScriptInterface> m_ScriptInterface; | ||||
typedef std::vector<SGUIPage> PageStackType; | using PageStackType = std::vector<SGUIPage>; | ||||
PageStackType m_PageStack; | PageStackType m_PageStack; | ||||
CTemplateLoader m_TemplateLoader; | CTemplateLoader m_TemplateLoader; | ||||
}; | }; | ||||
extern CGUIManager* g_GUI; | extern CGUIManager* g_GUI; | ||||
extern InReaction gui_handler(const SDL_Event_* ev); | extern InReaction gui_handler(const SDL_Event_* ev); | ||||
#endif // INCLUDED_GUIMANAGER | #endif // INCLUDED_GUIMANAGER |
Wildfire Games · Phabricator