22 #ifndef FIFE_GUI_LIBROCKETMANAGER_H 23 #define FIFE_GUI_LIBROCKETMANAGER_H 30 #include <Rocket/Core/SystemInterface.h> 43 class ElementDocument;
49 class LibRocketInputProcessor;
50 class LibRocketRenderInterface;
53 public Rocket::Core::SystemInterface,
71 void init(
const std::string& backend, int32_t screenWidth, int32_t screenHeight);
81 virtual float GetElapsedTime();
102 virtual Rocket::Core::ElementDocument* loadDocument(
const std::string&
id,
const std::string& documentPath);
106 virtual Rocket::Core::ElementDocument* getDocument(
const std::string&
id);
110 virtual void unloadDocument(Rocket::Core::ElementDocument* document);
114 virtual void unloadDocument(
const std::string&
id);
121 virtual void loadFont(
const std::string& filepath);
126 virtual bool onSdlEvent(SDL_Event& evt);
130 void showDebugger()
const;
135 void hideDebugger()
const;
142 void unloadDocuments();
163 #endif //FIFE_GUI_LIBROCKETMANAGER_H
LibRocketInputProcessor * m_inputProcessor
Input processor for librocket.
std::map< std::string, Rocket::Core::ElementDocument * > m_openDocuments
A set of all open documents.
LibRocketRenderInterface * m_renderInterface
Render Interface for librocket.
Rocket::Core::Context * m_context
Librocket's context.