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)
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;
329 static const String& getDefaultResourceGroup()
330 {
return d_defaultResourceGroup; }
342 static void setDefaultResourceGroup(
const String& resourceGroup)
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_