29#ifndef _CEGUIWindowManager_h_
30#define _CEGUIWindowManager_h_
32#include "CEGUI/Base.h"
33#include "CEGUI/String.h"
34#include "CEGUI/Singleton.h"
35#include "CEGUI/Logger.h"
36#include "CEGUI/IteratorBase.h"
37#include "CEGUI/EventSet.h"
43# pragma warning(disable : 4275)
44# pragma warning(disable : 4251)
330 {
return d_defaultResourceGroup; }
343 { d_defaultResourceGroup = resourceGroup; }
401 String generateUniqueWindowName();
404 void initialiseRenderEffect(
Window* wnd,
const String& effect)
const;
409 typedef std::vector<
Window*
410 CEGUI_VECTOR_ALLOC(
Window*)> WindowVector;
413 WindowVector d_windowRegistry;
414 WindowVector d_deathrow;
416 unsigned long d_uid_counter;
417 static String d_defaultResourceGroup;
Definition MemoryAllocatedObject.h:110
iterator for vectors
Definition IteratorBase.h:288
Interface providing event signaling and handling.
Definition EventSet.h:167
Class used as the databuffer for loading files throughout the library.
Definition DataContainer.h:44
Definition Singleton.h:56
String class used within the GUI system.
Definition String.h:64
The WindowManager class describes an object that manages creation and lifetime of Window objects.
Definition WindowManager.h:63
void cleanDeadPool(void)
Permanently destroys any windows placed in the dead pool.
void writeLayoutToStream(const Window &window, OutStream &out_stream) const
Writes a full XML window layout, starting at the given Window to the given OutStream.
Window * loadLayoutFromContainer(const RawDataContainer &source, PropertyCallback *callback=0, void *userdata=0)
Creates a set of windows (a GUI layout) from the information in the specified XML.
void destroyAllWindows(void)
Destroys all Window objects within the system.
WindowIterator getIterator(void) const
Return a WindowManager::WindowIterator object to iterate over the currently defined Windows.
Window * createWindow(const String &type, const String &name="")
Creates a new Window object of the specified type, and gives it the specified unique name.
Window * loadLayoutFromFile(const String &filename, const String &resourceGroup="", PropertyCallback *callback=0, void *userdata=0)
Creates a set of windows (a GUI layout) from the information in the specified XML file.
~WindowManager(void)
Destructor for WindowManager objects.
static const String GUILayoutSchemaName
Filename of the XML schema used for validating GUILayout files.
Definition WindowManager.h:82
static const String EventNamespace
Namespace for global events.
Definition WindowManager.h:70
void DEBUG_dumpWindowNames(String zone) const
Outputs the names of ALL existing windows to log (DEBUG function).
void unlock()
Put WindowManager into the unlocked state.
static const String EventWindowDestroyed
Definition WindowManager.h:80
void lock()
Put WindowManager into the locked state.
static const String GeneratedWindowNameBase
Definition WindowManager.h:68
bool isDeadPoolEmpty(void) const
Return whether the window dead pool is empty.
WindowManager(void)
Constructs a new WindowManager object.
static const String & getDefaultResourceGroup()
Returns the default resource group currently set for layouts.
Definition WindowManager.h:329
void destroyWindow(Window *window)
Destroy the specified Window object.
static const String EventWindowCreated
Definition WindowManager.h:75
bool isAlive(const Window *window) const
return whether Window is alive.
Window * loadLayoutFromString(const String &source, PropertyCallback *callback=0, void *userdata=0)
Creates a set of windows (a GUI layout) from the information in the specified XML.
String getLayoutAsString(const Window &window) const
Writes a full XML window layout, starting at the given Window and returns the result as string.
void saveLayoutToFile(const Window &window, const String &filename) const
Save a full XML window layout, starting at the given Window, to a file with the given file name.
bool isLocked() const
Returns whether WindowManager is currently in the locked state.
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 ea...
Definition WindowManager.h:105
static void setDefaultResourceGroup(const String &resourceGroup)
Sets the default resource group to be used when loading layouts.
Definition WindowManager.h:342
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition Window.h:151
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1
std::ostream OutStream
Output stream class.
Definition Base.h:185