30 #ifndef _CEGUIWindowManager_h_
31 #define _CEGUIWindowManager_h_
33 #include "CEGUIBase.h"
34 #include "CEGUIString.h"
35 #include "CEGUISingleton.h"
36 #include "CEGUILogger.h"
37 #include "CEGUIIteratorBase.h"
38 #include "CEGUIEventSet.h"
43 # pragma warning(push)
44 # pragma warning(disable : 4275)
45 # pragma warning(disable : 4251)
161 void destroyWindow(
Window* window);
176 void destroyWindow(
const String& window);
204 bool isWindowPresent(
const String& name)
const;
216 void destroyAllWindows(
void);
249 Window* loadWindowLayout(
const String& filename,
const String& name_prefix =
"",
const String& resourceGroup =
"", PropertyCallback* callback = 0,
void* userdata = 0);
259 bool isDeadPoolEmpty(
void)
const;
272 void cleanDeadPool(
void);
291 void writeWindowLayoutToStream(
const Window& window,
OutStream& out_stream,
bool writeParent =
false)
const;
310 void writeWindowLayoutToStream(
const String& window,
OutStream& out_stream,
bool writeParent =
false)
const;
328 void renameWindow(
const String& window,
const String& new_name);
343 void renameWindow(
Window* window,
const String& new_name);
353 static const String& getDefaultResourceGroup()
354 {
return d_defaultResourceGroup; }
366 static void setDefaultResourceGroup(
const String& resourceGroup)
367 { d_defaultResourceGroup = resourceGroup; }
415 bool isLocked()
const;
425 String generateUniqueWindowName();
430 static const char GUILayoutSchemaName[];
436 typedef std::map<String, Window*, String::FastLessCompare> WindowRegistry;
437 typedef std::vector<Window*> WindowVector;
439 WindowRegistry d_windowRegistry;
440 WindowVector d_deathrow;
442 unsigned long d_uid_counter;
443 static String d_defaultResourceGroup;
457 WindowIterator getIterator(
void)
const;
469 void DEBUG_dumpWindowNames(
String zone);
474 #if defined(_MSC_VER)
475 # pragma warning(pop)
478 #endif // end of guard _CEGUIWindowManager_h_