Crazy Eddie's GUI System  0.8.4
CEGUI::ImageDim Class Reference

ImageDimBase subclass that accesses an image by its name. More...

+ Inheritance diagram for CEGUI::ImageDim:
+ Collaboration diagram for CEGUI::ImageDim:

List of all members.

Public Member Functions

 ImageDim (const String &image_name, DimensionType dim)
const StringgetSourceImage () const
 return the name of the image accessed by this ImageDim.
void setSourceImage (const String &image_name)
 set the name of the image accessed by this ImageDim.
BaseDimclone () const
 Create an exact copy of the specialised object and return it as a pointer to a BaseDim object.

Protected Member Functions

const ImagegetSourceImage (const Window &wnd) const
 return the image instance to access
void writeXMLElementName_impl (XMLSerializer &xml_stream) const
 Implementataion method to output real xml element name.
void writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const
 Implementataion method to create the element attributes.

Protected Attributes

String d_imageName
 name of the Image.

Detailed Description

ImageDimBase subclass that accesses an image by its name.


Member Function Documentation

BaseDim* CEGUI::ImageDim::clone ( ) const [virtual]

Create an exact copy of the specialised object and return it as a pointer to a BaseDim object.

Since the system needs to be able to copy objects derived from BaseDim, but only has knowledge of the BaseDim interface, this clone method is provided to prevent slicing issues.

Implements CEGUI::BaseDim.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends