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"
42 # pragma warning(push)
43 # pragma warning(disable : 4275)
44 # pragma warning(disable : 4251)
69 static const String EventNamespace;
168 void destroyWindow(
Window* window);
180 void destroyAllWindows(
void);
183 bool isAlive(
const Window* window)
const;
203 Window* loadLayoutFromContainer(
const RawDataContainer& source, PropertyCallback* callback = 0,
void* userdata = 0);
229 Window* loadLayoutFromFile(
const String& filename,
const String& resourceGroup =
"", PropertyCallback* callback = 0,
void* userdata = 0);
249 Window* loadLayoutFromString(
const String& source, PropertyCallback* callback = 0,
void* userdata = 0);
259 bool isDeadPoolEmpty(
void)
const;
272 void cleanDeadPool(
void);
287 void writeLayoutToStream(
const Window& window,
OutStream& out_stream)
const;
319 void saveLayoutToFile(
const Window& window,
const String& filename)
const;
330 {
return d_defaultResourceGroup; }
343 { d_defaultResourceGroup = resourceGroup; }
391 bool isLocked()
const;
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;
431 WindowIterator getIterator(
void)
const;
443 void DEBUG_dumpWindowNames(
String zone)
const;
448 #if defined(_MSC_VER)
449 # pragma warning(pop)
452 #endif // end of guard _CEGUIWindowManager_h_
Definition: MemoryAllocatedObject.h:109
static void setDefaultResourceGroup(const String &resourceGroup)
Sets the default resource group to be used when loading layouts.
Definition: WindowManager.h:342
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
static const String EventWindowCreated
Definition: WindowManager.h:75
std::ostream OutStream
Output stream class.
Definition: Base.h:185
static const String EventWindowDestroyed
Definition: WindowManager.h:80
iterator for vectors
Definition: IteratorBase.h:287
The WindowManager class describes an object that manages creation and lifetime of Window objects...
Definition: WindowManager.h:60
static const String GeneratedWindowNameBase
Definition: WindowManager.h:68
Definition: Singleton.h:55
Class used as the databuffer for loading files throughout the library.
Definition: DataContainer.h:42
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Interface providing event signaling and handling.
Definition: EventSet.h:166
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 const String & getDefaultResourceGroup()
Returns the default resource group currently set for layouts.
Definition: WindowManager.h:329
String class used within the GUI system.
Definition: String.h:62
static const String GUILayoutSchemaName
Filename of the XML schema used for validating GUILayout files.
Definition: WindowManager.h:82