Crazy Eddie's GUI System
0.8.4
|
Template based WindowFactory that can be used to automatically generate a WindowFactory given a Window based class. More...
Public Member Functions | |
TplWindowFactory () | |
Default constructor. | |
Window * | createWindow (const String &name) |
Create a new Window object of whatever type this WindowFactory produces. More... | |
void | destroyWindow (Window *window) |
Destroys the given Window object. More... | |
Public Member Functions inherited from CEGUI::WindowFactory | |
const String & | getTypeName () const |
Get the string that describes the type of Window object this WindowFactory produces. More... | |
virtual | ~WindowFactory () |
Destructor. | |
Additional Inherited Members | |
Protected Member Functions inherited from CEGUI::WindowFactory | |
WindowFactory (const String &type) | |
Constructor. | |
Protected Attributes inherited from CEGUI::WindowFactory | |
String | d_type |
String holding the type of object created by this factory. | |
Template based WindowFactory that can be used to automatically generate a WindowFactory given a Window based class.
The advantage of this over the previous macro based methods is that there is no longer any need to have any supporting code or structure in order to add new Window types to the system, rather you can just do:
T | Specifies the Window based class that the factory will create and destroy instances of. |
|
virtual |
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 |
Implements CEGUI::WindowFactory.
|
virtual |
Destroys the given Window object.
window | Pointer to the Window object to be destroyed. |
Implements CEGUI::WindowFactory.