Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CEGUI::WindowFactory Class Reference

Abstract class that defines the required interface for all WindowFactory objects. More...

#include <CEGUIWindowFactory.h>

Inheritance diagram for CEGUI::WindowFactory:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::WindowFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual WindowcreateWindow (const String &name)=0
 Create a new Window object of whatever type this WindowFactory produces.
virtual void destroyWindow (Window *window)=0
 Destroys the given Window object.
const StringgetTypeName (void) const
 Get the string that describes the type of Window object this WindowFactory produces.
virtual ~WindowFactory (void)

Protected Member Functions

 WindowFactory (const String &type)

Protected Attributes

String d_type
 String holding the type of object created by this factory.

Detailed Description

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 WindowManager so that the system knows how to create and destroy those types of Window base object.

Definition at line 46 of file CEGUIWindowFactory.h.


Constructor & Destructor Documentation

CEGUI::WindowFactory::WindowFactory const String type  )  [inline, protected]
 

Definition at line 86 of file CEGUIWindowFactory.h.

virtual CEGUI::WindowFactory::~WindowFactory void   )  [inline, virtual]
 

Definition at line 89 of file CEGUIWindowFactory.h.


Member Function Documentation

virtual Window* CEGUI::WindowFactory::createWindow const String name  )  [pure virtual]
 

Create a new Window object of whatever type this WindowFactory produces.

Parameters:
name A unique name that is to be assigned to the newly created Window object
Returns:
Pointer to the new Window object.

Implemented in CEGUI::DragContainerFactory, CEGUI::GUISheetFactory, and CEGUI::ScrolledContainerFactory.

Referenced by CEGUI::WindowManager::createWindow().

virtual void CEGUI::WindowFactory::destroyWindow Window window  )  [pure virtual]
 

Destroys the given Window object.

Parameters:
window Pointer to the Window object to be destroyed.
Returns:
Nothing.

Implemented in CEGUI::DragContainerFactory, CEGUI::GUISheetFactory, and CEGUI::ScrolledContainerFactory.

Referenced by CEGUI::WindowManager::cleanDeadPool().

const String& CEGUI::WindowFactory::getTypeName void   )  const [inline]
 

Get the string that describes the type of Window object this WindowFactory produces.

Returns:
String object that contains the unique Window object type produced by this WindowFactory

Definition at line 80 of file CEGUIWindowFactory.h.

Referenced by CEGUI::WindowFactoryManager::addFactory(), and CEGUI::WindowFactoryManager::removeFactory().


Member Data Documentation

String CEGUI::WindowFactory::d_type [protected]
 

String holding the type of object created by this factory.

Definition at line 95 of file CEGUIWindowFactory.h.

Referenced by CEGUI::ScrolledContainerFactory::createWindow(), CEGUI::GUISheetFactory::createWindow(), CEGUI::DragContainerFactory::createWindow(), CEGUI::ScrolledContainerFactory::destroyWindow(), CEGUI::GUISheetFactory::destroyWindow(), and CEGUI::DragContainerFactory::destroyWindow().


The documentation for this class was generated from the following file:
Generated on Wed Sep 7 10:07:44 2005 for Crazy Eddies GUI System by  doxygen 1.4.3