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

ImageDimBase subclass that accesses an image fetched via a property. More...

+ Inheritance diagram for CEGUI::ImagePropertyDim:
+ Collaboration diagram for CEGUI::ImagePropertyDim:

List of all members.

Public Member Functions

 ImagePropertyDim (const String &property_name, DimensionType dim)
 Constructor.
const StringgetSourceProperty () const
 return the name of the property accessed by this ImagePropertyDim.
void setSourceProperty (const String &property_name)
 set the name of the property accessed by this ImagePropertyDim.
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_propertyName
 name of the property from which to fetch the image name.

Detailed Description

ImageDimBase subclass that accesses an image fetched via a property.


Constructor & Destructor Documentation

CEGUI::ImagePropertyDim::ImagePropertyDim ( const String property_name,
DimensionType  dim 
)

Constructor.

Parameters:
property_nameString holding the name of the property on the target that will be accessed to retrieve the name of the image to be accessed by the ImageDim.
dimDimensionType value indicating which dimension of an Image that this ImageDim is to represent.

Member Function Documentation

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