Public Methods |
| | GuiManager () |
| virtual | ~GuiManager () |
| GuiElement * | createGuiElement (const String &typeName, const String &instanceName, bool isTemplate=false) |
| | Creates a new GuiElement of the type requested. More...
|
| GuiElement * | getGuiElement (const String &name, bool isTemplate=false) |
| | Gets a reference to an existing element. More...
|
| void | destroyGuiElement (const String &instanceName, bool isTemplate=false) |
| | Destroys a GuiElement. More...
|
| void | destroyGuiElement (GuiElement *pInstance, bool isTemplate=false) |
| | Destroys a GuiElement. More...
|
| void | destroyAllGuiElements (bool isTemplate=false) |
| | Destroys all the GuiElement created so far. More...
|
| void | addGuiElementFactory (GuiElementFactory *elemFactory) |
| | Registers a new GuiElementFactory with this manager. More...
|
| GuiElement * | createGuiElementFromTemplate (const String &templateName, const String &typeName, const String &instanceName, bool isTemplate=false) |
| GuiElement * | createGuiElementFromFactory (const String &typeName, const String &instanceName) |
Static Public Methods |
| GuiManager & | getSingleton (void) |
| | Override standard Singleton retrieval. More...
|
| GuiManager * | getSingletonPtr (void) |
Protected Types |
typedef std::map< String,
GuiElementFactory * > | FactoryMap |
typedef std::map< String,
GuiElement * > | ElementMap |
Protected Methods |
| ElementMap & | getElementMap (bool isTemplate) |
| GuiElement * | createGuiElementImpl (const String &typeName, const String &instanceName, ElementMap &elementMap) |
| GuiElement * | getGuiElementImpl (const String &name, ElementMap &elementMap) |
| void | destroyGuiElementImpl (const String &instanceName, ElementMap &elementMap) |
| void | destroyGuiElementImpl (GuiElement *pInstance, ElementMap &elementMap) |
| void | destroyAllGuiElementsImpl (ElementMap &elementMap) |
Protected Attributes |
| FactoryMap | mFactories |
| ElementMap | mInstances |
| ElementMap | mTemplates |
Static Protected Attributes |
| GuiManager * | ms_Singleton = 0 |