Collaboration 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. | |
bool | isDeadPoolEmpty (void) const |
Return whether the window dead pool is empty. | |
void | cleanDeadPool (void) |
Permanently destroys any windows placed in the dead pool. | |
void | writeWindowLayoutToStream (const Window &window, OutStream &out_stream, bool writeParent=false) const |
Writes a full XML window layout, starting at the given Window to the given OutStream. | |
void | writeWindowLayoutToStream (const String &window, OutStream &out_stream, bool writeParent=false) const |
Writes a full XML window layout, starting at the given Window to the given OutStream. | |
void | renameWindow (const String &window, const String &new_name) |
Rename a window. | |
void | renameWindow (Window *window, const String &new_name) |
Rename a window. | |
WindowIterator | getIterator (void) const |
Return a WindowManager::WindowIterator object to iterate over the currently defined Windows. | |
Static Public Member Functions | |
static WindowManager & | getSingleton (void) |
Return singleton WindowManager object. | |
static WindowManager * | getSingletonPtr (void) |
Return pointer to singleton WindowManager object. | |
Static Public Attributes | |
static const String | GeneratedWindowNameBase |
Base name to use for generated window names. |
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.
|
Function type that is used as a callback when loading layouts from XML; the function is called for each Property element encountered.
|
|
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. |
|
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). |
|
Permanently destroys any windows placed in the dead pool.
|
|
Creates a new Window object of the specified type, and gives it the specified unique name.
|
|
Destroys all Window objects within the system.
|
|
Destroy the specified Window object.
|
|
Destroy the specified Window object.
|
|
Return singleton WindowManager object.
|
|
Return pointer to singleton WindowManager object.
|
|
Return a pointer to the specified Window object.
|
|
Return whether the window dead pool is empty.
|
|
Examines the list of Window objects to see if one exists with the given name.
|
|
Creates a set of windows (a Gui layout) from the information in the specified XML file.
|
|
Rename a window.
|
|
Rename a window.
|
|
Writes a full XML window layout, starting at the given Window to the given OutStream.
|
|
Writes a full XML window layout, starting at the given Window to the given OutStream.
|