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)
69 static const String EventNamespace;
167 void destroyWindow(
Window* window);
182 void destroyWindow(
const String& window);
210 bool isWindowPresent(
const String& name)
const;
222 void destroyAllWindows(
void);
255 Window* loadWindowLayout(
const String& filename,
const String& name_prefix =
"",
const String& resourceGroup =
"", PropertyCallback* callback = 0,
void* userdata = 0);
265 bool isDeadPoolEmpty(
void)
const;
278 void cleanDeadPool(
void);
297 void writeWindowLayoutToStream(
const Window& window,
OutStream& out_stream,
bool writeParent =
false)
const;
316 void writeWindowLayoutToStream(
const String& window,
OutStream& out_stream,
bool writeParent =
false)
const;
337 void saveWindowLayout(
const String& window,
const String& filename,
const bool writeParent =
false)
const;
357 void saveWindowLayout(
const Window& window,
const String& filename,
const bool writeParent =
false)
const;
375 void renameWindow(
const String& window,
const String& new_name);
390 void renameWindow(
Window* window,
const String& new_name);
401 {
return d_defaultResourceGroup; }
414 { d_defaultResourceGroup = resourceGroup; }
462 bool isLocked()
const;
472 String generateUniqueWindowName();
475 void initialiseRenderEffect(
Window* wnd,
const String& effect)
const;
480 static const char GUILayoutSchemaName[];
486 typedef std::map<String, Window*, String::FastLessCompare> WindowRegistry;
487 typedef std::vector<Window*> WindowVector;
489 WindowRegistry d_windowRegistry;
490 WindowVector d_deathrow;
492 unsigned long d_uid_counter;
493 static String d_defaultResourceGroup;
507 WindowIterator getIterator(
void)
const;
519 void DEBUG_dumpWindowNames(
String zone);
524 #if defined(_MSC_VER)
525 # pragma warning(pop)
528 #endif // end of guard _CEGUIWindowManager_h_
static void setDefaultResourceGroup(const String &resourceGroup)
Sets the default resource group to be used when loading layouts.
Definition: CEGUIWindowManager.h:413
static const String EventWindowCreated
Definition: CEGUIWindowManager.h:75
std::ostream OutStream
Output stream class.
Definition: CEGUIBase.h:165
static const String EventWindowDestroyed
Definition: CEGUIWindowManager.h:80
The WindowManager class describes an object that manages creation and lifetime of Window objects...
Definition: CEGUIWindowManager.h:61
Base class constant iterator used to offer iteration over various collections within the system...
Definition: CEGUIIteratorBase.h:47
static const String GeneratedWindowNameBase
Definition: CEGUIWindowManager.h:68
Definition: CEGUISingleton.h:56
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
Class that collects together a set of Event objects.
Definition: CEGUIEventSet.h:66
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: CEGUIWindowManager.h:103
static const String & getDefaultResourceGroup()
Returns the default resource group currently set for layouts.
Definition: CEGUIWindowManager.h:400
String class used within the GUI system.
Definition: CEGUIString.h:57