|
FIFE
|
#include <librocketmanager.h>
Inheritance diagram for FIFE::LibRocketManager:
Collaboration diagram for FIFE::LibRocketManager:Public Member Functions | |
| LibRocketManager () | |
| Constructor. More... | |
| virtual | ~LibRocketManager () |
| Destructor. More... | |
| void | init (const std::string &backend, int32_t screenWidth, int32_t screenHeight) |
| Initializes the librocket manager. More... | |
| virtual float | GetElapsedTime () |
| There is an inconsistency in the naming of this method, it's in upper camelcase and should have been in lower camelcase but it overrides Rocket::Core::SystemInterface::GetElapsedTime. More... | |
| virtual void | turn () |
| Updates and renders the gui. More... | |
| virtual void | resizeTopContainer (uint32_t x, uint32_t y, uint32_t width, uint32_t height) |
| Resizes the top container. More... | |
| virtual Rocket::Core::ElementDocument * | loadDocument (const std::string &id, const std::string &documentPath) |
| Loads a rocket .rml file and shows it. More... | |
| virtual Rocket::Core::ElementDocument * | getDocument (const std::string &id) |
| virtual void | unloadDocument (Rocket::Core::ElementDocument *document) |
| Unloads a rocket document. More... | |
| virtual void | unloadDocument (const std::string &id) |
| Unloads a rocket document with given id. More... | |
| virtual void | loadFont (const std::string &filepath) |
| Loads a font to be used by librocket. More... | |
| virtual bool | onSdlEvent (SDL_Event &evt) |
| Receives input and converts it to librocket format, then it forwards it to librocket. More... | |
| void | showDebugger () const |
| Shows the librocket debugger. More... | |
| void | hideDebugger () const |
| Hides the librocket debugger. More... | |
Public Member Functions inherited from FIFE::IGUIManager | |
| virtual | ~IGUIManager () |
| Destructor. More... | |
Public Member Functions inherited from FIFE::ISdlEventListener | |
| virtual | ~ISdlEventListener () |
Public Member Functions inherited from FIFE::DynamicSingleton< LibRocketManager > | |
| DynamicSingleton () | |
| virtual | ~DynamicSingleton () |
Private Member Functions | |
| void | unloadDocuments () |
| Unloads documents opened by librocket. More... | |
Private Attributes | |
| Rocket::Core::Context * | m_context |
| Librocket's context. More... | |
| LibRocketRenderInterface * | m_renderInterface |
| Render Interface for librocket. More... | |
| LibRocketInputProcessor * | m_inputProcessor |
| Input processor for librocket. More... | |
| std::map< std::string, Rocket::Core::ElementDocument * > | m_openDocuments |
| A set of all open documents. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from FIFE::DynamicSingleton< LibRocketManager > | |
| static LibRocketManager * | instance () |
Definition at line 52 of file librocketmanager.h.
| FIFE::LibRocketManager::LibRocketManager | ( | ) |
|
virtual |
Destructor.
Definition at line 53 of file librocketmanager.cpp.
References m_context, m_inputProcessor, m_renderInterface, and unloadDocuments().
|
virtual |
Definition at line 113 of file librocketmanager.cpp.
References m_openDocuments.
|
virtual |
There is an inconsistency in the naming of this method, it's in upper camelcase and should have been in lower camelcase but it overrides Rocket::Core::SystemInterface::GetElapsedTime.
Definition at line 73 of file librocketmanager.cpp.
References FIFE::TimeManager::getTime(), and FIFE::DynamicSingleton< TimeManager >::instance().
| void FIFE::LibRocketManager::hideDebugger | ( | ) | const |
Hides the librocket debugger.
Definition at line 167 of file librocketmanager.cpp.
| void FIFE::LibRocketManager::init | ( | const std::string & | backend, |
| int32_t | screenWidth, | ||
| int32_t | screenHeight | ||
| ) |
Initializes the librocket manager.
Definition at line 62 of file librocketmanager.cpp.
References m_context, and m_inputProcessor.
|
virtual |
Loads a rocket .rml file and shows it.
| id | Id of the document chosen by the user. |
| documentPath | Path to the file. |
Definition at line 94 of file librocketmanager.cpp.
References m_context, and m_openDocuments.
|
virtual |
Loads a font to be used by librocket.
| filepath | Path of the font. |
Definition at line 145 of file librocketmanager.cpp.
|
virtual |
Receives input and converts it to librocket format, then it forwards it to librocket.
Implements FIFE::ISdlEventListener.
Definition at line 154 of file librocketmanager.cpp.
References m_inputProcessor, and FIFE::LibRocketInputProcessor::onSdlEvent().
|
virtual |
Resizes the top container.
| x | The new starting X coordinate. |
| y | The new starting Y coordinate. |
| width | The new width. |
| height | The new height. |
Implements FIFE::IGUIManager.
Definition at line 90 of file librocketmanager.cpp.
References m_context.
| void FIFE::LibRocketManager::showDebugger | ( | ) | const |
Shows the librocket debugger.
Definition at line 159 of file librocketmanager.cpp.
|
virtual |
Updates and renders the gui.
Implements FIFE::IGUIManager.
Definition at line 79 of file librocketmanager.cpp.
References FIFE::LibRocketRenderInterface::freeTextures(), m_context, m_inputProcessor, m_renderInterface, FIFE::LibRocketRenderInterface::render(), and FIFE::LibRocketInputProcessor::turn().
|
virtual |
Unloads a rocket document.
Definition at line 121 of file librocketmanager.cpp.
References m_context, and m_openDocuments.
|
virtual |
Unloads a rocket document with given id.
Definition at line 136 of file librocketmanager.cpp.
References m_context, and m_openDocuments.
|
private |
Unloads documents opened by librocket.
Definition at line 175 of file librocketmanager.cpp.
References m_context, and m_openDocuments.
Referenced by ~LibRocketManager().
Here is the caller graph for this function:
|
private |
Librocket's context.
Definition at line 145 of file librocketmanager.h.
Referenced by init(), loadDocument(), resizeTopContainer(), turn(), unloadDocument(), unloadDocuments(), and ~LibRocketManager().
|
private |
Input processor for librocket.
Definition at line 153 of file librocketmanager.h.
Referenced by init(), onSdlEvent(), turn(), and ~LibRocketManager().
|
private |
A set of all open documents.
Definition at line 157 of file librocketmanager.h.
Referenced by getDocument(), loadDocument(), unloadDocument(), and unloadDocuments().
|
private |
Render Interface for librocket.
Definition at line 149 of file librocketmanager.h.
Referenced by LibRocketManager(), turn(), and ~LibRocketManager().