Crazy Eddie's GUI System
0.8.7
|
Abstract class that defines the required interface for all WindowFactory objects. More...
Public Member Functions | |
virtual Window * | createWindow (const String &name)=0 |
Create a new Window object of whatever type this WindowFactory produces. More... | |
virtual void | destroyWindow (Window *window)=0 |
Destroys the given Window object. More... | |
const String & | getTypeName () const |
Get the string that describes the type of Window object this WindowFactory produces. More... | |
virtual | ~WindowFactory () |
Destructor. | |
Protected Member Functions | |
WindowFactory (const String &type) | |
Constructor. | |
Protected Attributes | |
String | d_type |
String holding the type of object created by this factory. | |
Abstract class that defines the required interface for all WindowFactory objects.
A WindowFactory is used to create and destroy windows of a specific type. For every type of Window object wihin the system (widgets, dialogs, movable windows etc) there must be an associated WindowFactory registered with the WindowFactoryManager so that the system knows how to create and destroy those types of Window base object.
Create a new Window object of whatever type this WindowFactory produces.
name | A unique name that is to be assigned to the newly created Window object |
Implemented in CEGUI::TplWindowFactory< T >.
|
pure virtual |
Destroys the given Window object.
window | Pointer to the Window object to be destroyed. |
Implemented in CEGUI::TplWindowFactory< T >.
|
inline |
Get the string that describes the type of Window object this WindowFactory produces.
Referenced by CEGUI::WindowFactoryManager::addFactory().