Crazy Eddie's GUI System
0.8.7
|
27 #ifndef _CEGUIImageFactory_h_
28 #define _CEGUIImageFactory_h_
30 #include "CEGUI/Image.h"
43 class ImageFactory :
public
44 AllocatedObject<ImageFactory>
51 virtual Image&
create(
const String& name) = 0;
56 virtual Image&
create(
const XMLAttributes& attributes) = 0;
59 virtual void destroy(Image& image) = 0;
77 return *CEGUI_NEW_AO T(name);
84 return *CEGUI_NEW_AO T(attributes);
91 CEGUI_DELETE_AO ℑ
98 #endif // end of guard _CEGUIImageFactory_h_
Templatised ImageFactory subclass used internally by the system.
Definition: ImageFactory.h:84
virtual ~ImageFactory()
base class virtual destructor.
Definition: ImageFactory.h:90
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:66
void destroy(Image &image)
Destroy an instance of the Image subclass that this factory creates.
Definition: ImageFactory.h:109
virtual void destroy(Image &image)=0
Destroy an instance of the Image subclass that this factory creates.
String class used within the GUI system.
Definition: String.h:83
Interface for Image.
Definition: Image.h:178
Interface for factory objects that create instances of classes derived from the Image class.
Definition: ImageFactory.h:63
Image & create(const String &name)
Create an instance of the Image subclass that this factory creates.
Definition: ImageFactory.h:95
virtual Image & create(const String &name)=0
Create an instance of the Image subclass that this factory creates.