#include <CEGUIWindowManager.h>
Inheritance diagram for CEGUI::WindowManager:
Public Types | |
typedef bool | PropertyCallback (Window *window, String &propname, String &propvalue, void *userdata) |
Function type that is used as a callback when loading layouts from XML; the function is called for each Property element encountered. | |
typedef ConstBaseIterator< WindowRegistry > | WindowIterator |
Public Member Functions | |
WindowManager (void) | |
Constructs a new WindowManager object. | |
~WindowManager (void) | |
Destructor for WindowManager objects. | |
Window * | createWindow (const String &type, const String &name) |
Creates a new Window object of the specified type, and gives it the specified unique name. | |
void | destroyWindow (Window *window) |
Destroy the specified Window object. | |
void | destroyWindow (const String &window) |
Destroy the specified Window object. | |
Window * | getWindow (const String &name) const |
Return a pointer to the specified Window object. | |
bool | isWindowPresent (const String &name) const |
Examines the list of Window objects to see if one exists with the given name. | |
void | destroyAllWindows (void) |
Destroys all Window objects within the system. | |
Window * | loadWindowLayout (const String &filename, const String &name_prefix="", const String &resourceGroup="", PropertyCallback *callback=NULL, void *userdata=NULL) |
Creates a set of windows (a Gui layout) from the information in the specified XML file. | |
WindowIterator | getIterator (void) const |
Return a WindowManager::WindowIterator object to iterate over the currently defined Windows. | |
Static Public Member Functions | |
WindowManager & | getSingleton (void) |
Return singleton WindowManager object. | |
WindowManager * | getSingletonPtr (void) |
Return pointer to singleton WindowManager object. | |
Static Protected Attributes | |
WindowManager * | ms_Singleton = NULL |
The WindowManager is the means by which Window objects are created and destroyed. For each sub-class of Window that is to be created, there must exist a WindowFactory object which is registered with the WindowFactoryManager. Additionally, the WindowManager tracks every Window object created, and can be used to access those Window objects by name.
Definition at line 55 of file CEGUIWindowManager.h.
|
Function type that is used as a callback when loading layouts from XML; the function is called for each Property element encountered.
Definition at line 79 of file CEGUIWindowManager.h. |
|
Definition at line 268 of file CEGUIWindowManager.h. Referenced by getIterator(). |
|
Constructs a new WindowManager object. NB: Client code should not create WindowManager objects - they are of limited use to you! The intended pattern of access is to get a pointer to the GUI system's WindowManager via the System object, and use that. Definition at line 92 of file CEGUIWindowManager.h. References CEGUI::utf8. |
|
Destructor for WindowManager objects. This will properly destry all remaining Window objects. Note that WindowFactory objects will not be destroyed (since they are owned by whoever created them). Definition at line 59 of file CEGUIWindowManager.cpp. References destroyAllWindows(), and CEGUI::utf8. |
|
Creates a new Window object of the specified type, and gives it the specified unique name.
Definition at line 70 of file CEGUIWindowManager.cpp. References CEGUI::WindowFactory::createWindow(), CEGUI::Informative, isWindowPresent(), and CEGUI::utf8. |
|
Destroys all Window objects within the system.
Definition at line 159 of file CEGUIWindowManager.cpp. References CEGUI::String::begin(), and destroyWindow(). Referenced by ~WindowManager(). |
|
Destroy the specified Window object.
Definition at line 110 of file CEGUIWindowManager.cpp. References CEGUI::WindowFactory::destroyWindow(), CEGUI::String::find(), CEGUI::Informative, and CEGUI::utf8. |
|
Destroy the specified Window object.
Definition at line 91 of file CEGUIWindowManager.cpp. References CEGUI::Window::getName(). Referenced by destroyAllWindows(). |
|
Return a WindowManager::WindowIterator object to iterate over the currently defined Windows.
Definition at line 294 of file CEGUIWindowManager.cpp. References WindowIterator. |
|
Return singleton WindowManager object.
Reimplemented from CEGUI::Singleton< WindowManager >. Definition at line 278 of file CEGUIWindowManager.cpp. |
|
Return pointer to singleton WindowManager object.
Reimplemented from CEGUI::Singleton< WindowManager >. Definition at line 284 of file CEGUIWindowManager.cpp. |
|
Return a pointer to the specified Window object.
Definition at line 134 of file CEGUIWindowManager.cpp. |
|
Examines the list of Window objects to see if one exists with the given name.
Definition at line 150 of file CEGUIWindowManager.cpp. Referenced by createWindow(). |
|
Creates a set of windows (a Gui layout) from the information in the specified XML file.
Definition at line 175 of file CEGUIWindowManager.cpp. References CEGUI::String::empty(), CEGUI::DataContainer< T >::getDataPtr(), CEGUI::GUILayout_xmlHandler::getLayoutRootWindow(), CEGUI::DataContainer< T >::getSize(), CEGUI::Informative, CEGUI::Standard, and CEGUI::utf8. |
|
Definition at line 46 of file CEGUIWindowManager.cpp. |