#include <CEGUIWindowManager.h>
Inheritance diagram for CEGUI::WindowManager:
Public Types | |
typedef 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 each Property element encountered. | |
typedef ConstBaseIterator< WindowRegistry > | WindowIterator |
Public Member Functions | |
WindowManager (void) | |
Constructs a new WindowManager object. | |
~WindowManager (void) | |
Destructor for WindowManager objects. | |
Window * | createWindow (const String &type, const String &name="") |
Creates a new Window object of the specified type, and gives it the specified unique name. | |
void | destroyWindow (Window *window) |
Destroy the specified Window object. | |
void | destroyWindow (const String &window) |
Destroy the specified Window object. | |
Window * | getWindow (const String &name) const |
Return a pointer to the specified Window object. | |
bool | isWindowPresent (const String &name) const |
Examines the list of Window objects to see if one exists with the given name. | |
void | destroyAllWindows (void) |
Destroys all Window objects within the system. | |
Window * | loadWindowLayout (const String &filename, const String &name_prefix="", const String &resourceGroup="", PropertyCallback *callback=NULL, void *userdata=NULL) |
Creates a set of windows (a Gui layout) from the information in the specified XML file. | |
bool | isDeadPoolEmpty (void) const |
Return whether the window dead pool is empty. | |
void | cleanDeadPool (void) |
Permanently destroys any windows placed in the dead pool. | |
void | writeWindowLayoutToStream (const Window &window, OutStream &out_stream, bool writeParent=false) const |
Writes a full XML window layout, starting at the given Window to the given OutStream. | |
void | writeWindowLayoutToStream (const String &window, OutStream &out_stream, bool writeParent=false) const |
Writes a full XML window layout, starting at the given Window to the given OutStream. | |
WindowIterator | getIterator (void) const |
Return a WindowManager::WindowIterator object to iterate over the currently defined Windows. | |
Singleton (void) | |
Static Public Member Functions | |
static WindowManager & | getSingleton (void) |
Return singleton WindowManager object. | |
static WindowManager * | getSingletonPtr (void) |
Return pointer to singleton WindowManager object. | |
Static Public Attributes | |
static const String | GeneratedWindowNameBase |
Base name to use for generated window names. | |
Static Protected Attributes | |
static WindowManager * | ms_Singleton = NULL |
The WindowManager is the means by which Window objects are created and destroyed. For each sub-class of Window that is to be created, there must exist a WindowFactory object which is registered with the WindowFactoryManager. Additionally, the WindowManager tracks every Window object created, and can be used to access those Window objects by name.
Definition at line 56 of file CEGUIWindowManager.h.
|
Function type that is used as a callback when loading layouts from XML; the function is called for each Property element encountered.
Definition at line 85 of file CEGUIWindowManager.h. |
|
Definition at line 349 of file CEGUIWindowManager.h. |
|
Constructs a new WindowManager object. NB: Client code should not create WindowManager objects - they are of limited use to you! The intended pattern of access is to get a pointer to the GUI system's WindowManager via the System object, and use that. Definition at line 57 of file CEGUIWindowManager.cpp. References CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). |
|
Destructor for WindowManager objects. This will properly destry all remaining Window objects. Note that WindowFactory objects will not be destroyed (since they are owned by whoever created them). Definition at line 67 of file CEGUIWindowManager.cpp. References cleanDeadPool(), destroyAllWindows(), CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). |
|
Permanently destroys any windows placed in the dead pool.
Definition at line 250 of file CEGUIWindowManager.cpp. References CEGUI_LOGINSANE, CEGUI::WindowFactory::destroyWindow(), CEGUI::WindowFactoryManager::getFactory(), and CEGUI::WindowFactoryManager::getSingleton(). Referenced by CEGUI::System::renderGUI(), CEGUI::System::~System(), and ~WindowManager(). |
|
|
Destroys all Window objects within the system.
Definition at line 187 of file CEGUIWindowManager.cpp. References destroyWindow(). Referenced by CEGUI::System::~System(), and ~WindowManager(). |
|
Destroy the specified Window object.
Definition at line 133 of file CEGUIWindowManager.cpp. References CEGUI::Window::destroy(), CEGUI::Logger::getSingleton(), CEGUI::System::getSingleton(), CEGUI::Informative, CEGUI::Logger::logEvent(), and CEGUI::System::notifyWindowDestroyed(). |
|
Destroy the specified Window object.
Definition at line 114 of file CEGUIWindowManager.cpp. References CEGUI::Window::getName(). Referenced by CEGUI::Window::cleanupChildren(), CEGUI::GUILayout_xmlHandler::cleanupLoadedWindows(), CEGUI::Window::destroy(), destroyAllWindows(), CEGUI::TabControl::removeButtonForTabContent(), CEGUI::ItemListBase::removeItem(), CEGUI::ItemListBase::resetList_impl(), CEGUI::Window::setTooltip(), CEGUI::System::setTooltip(), and CEGUI::Window::setTooltipType(). |
|
Return a WindowManager::WindowIterator object to iterate over the currently defined Windows.
Definition at line 315 of file CEGUIWindowManager.cpp. |
|
Return singleton WindowManager object.
Reimplemented from CEGUI::Singleton< WindowManager >. Definition at line 234 of file CEGUIWindowManager.cpp. Referenced by CEGUI::Window::addChildWindow(), CEGUI::Window::cleanupChildren(), CEGUI::GUILayout_xmlHandler::cleanupLoadedWindows(), CEGUI::StaticText::configureScrollbars(), CEGUI::Listbox::configureScrollbars(), CEGUI::WidgetComponent::create(), CEGUI::TabControl::createTabButtonPane(), CEGUI::Window::destroy(), CEGUI::GUILayout_xmlHandler::elementEnd(), CEGUI::GUILayout_xmlHandler::elementStart(), CEGUI::FrameWindow::getCaptionColour(), CEGUI::FrameWindow::getTitlebarFont(), CEGUI::PropertyDim::getValue_impl(), CEGUI::FontDim::getValue_impl(), CEGUI::WidgetDim::getValue_impl(), CEGUI::ScrollablePane::initialise(), CEGUI::WidgetComponent::layout(), CEGUI::FrameWindow::onTextChanged(), CEGUI::TabControl::removeButtonForTabContent(), CEGUI::ItemListBase::removeItem(), CEGUI::System::renderGUI(), CEGUI::ItemListBase::resetList_impl(), CEGUI::FrameWindow::setCaptionColour(), CEGUI::FrameWindow::setCloseButtonEnabled(), CEGUI::FrameWindow::setDragMovingEnabled(), CEGUI::FrameWindow::setTitleBarEnabled(), CEGUI::FrameWindow::setTitlebarFont(), CEGUI::Window::setTooltip(), CEGUI::System::setTooltip(), CEGUI::Window::setTooltipType(), and CEGUI::System::~System(). |
|
Return pointer to singleton WindowManager object.
Reimplemented from CEGUI::Singleton< WindowManager >. Definition at line 240 of file CEGUIWindowManager.cpp. Referenced by CEGUI::System::~System(). |
|
Return a pointer to the specified Window object.
Definition at line 162 of file CEGUIWindowManager.cpp. Referenced by CEGUI::StaticText::configureScrollbars(), CEGUI::Listbox::configureScrollbars(), CEGUI::GUILayout_xmlHandler::elementEnd(), CEGUI::FrameWindow::getCaptionColour(), CEGUI::FrameWindow::getTitlebarFont(), CEGUI::PropertyDim::getValue_impl(), CEGUI::FontDim::getValue_impl(), CEGUI::WidgetDim::getValue_impl(), CEGUI::WidgetComponent::layout(), CEGUI::FrameWindow::onTextChanged(), CEGUI::FrameWindow::setCaptionColour(), CEGUI::FrameWindow::setCloseButtonEnabled(), CEGUI::FrameWindow::setDragMovingEnabled(), CEGUI::FrameWindow::setTitleBarEnabled(), CEGUI::FrameWindow::setTitlebarFont(), and writeWindowLayoutToStream(). |
|
Return whether the window dead pool is empty.
Definition at line 245 of file CEGUIWindowManager.cpp. |
|
Examines the list of Window objects to see if one exists with the given name.
Definition at line 178 of file CEGUIWindowManager.cpp. Referenced by createWindow(), and CEGUI::Window::destroy(). |
|
Creates a set of windows (a Gui layout) from the information in the specified XML file.
Definition at line 203 of file CEGUIWindowManager.cpp. References CEGUI::String::empty(), CEGUI::Errors, CEGUI::GUILayout_xmlHandler::getLayoutRootWindow(), CEGUI::System::getSingleton(), CEGUI::Logger::getSingleton(), CEGUI::System::getXMLParser(), CEGUI::Informative, CEGUI::Logger::logEvent(), CEGUI::XMLParser::parseXMLFile(), and CEGUI::Standard. Referenced by CEGUI::GUILayout_xmlHandler::elementStart(). |
|
Definition at line 58 of file CEGUISingleton.h. |
|
Writes a full XML window layout, starting at the given Window to the given OutStream.
Definition at line 287 of file CEGUIWindowManager.cpp. References getWindow(), and writeWindowLayoutToStream(). |
|
Writes a full XML window layout, starting at the given Window to the given OutStream.
Definition at line 268 of file CEGUIWindowManager.cpp. References CEGUI::Window::getName(), CEGUI::Window::getParent(), and CEGUI::Window::writeXMLToStream(). Referenced by writeWindowLayoutToStream(). |
|
Base name to use for generated window names.
Referenced by CEGUI::Window::writeXMLToStream(). |
|
Definition at line 43 of file CEGUIWindowManager.cpp. |