Crazy Eddie's GUI System  0.8.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::BasicImage Class Reference
+ Inheritance diagram for CEGUI::BasicImage:
+ Collaboration diagram for CEGUI::BasicImage:

Public Member Functions

 BasicImage (const String &name)
 
 BasicImage (const XMLAttributes &attributes)
 
 BasicImage (const String &name, Texture *texture, const Rectf &tex_area, const Vector2f &offset, const AutoScaledMode autoscaled, const Sizef &native_res)
 
void setTexture (Texture *texture)
 
void setArea (const Rectf &pixel_area)
 
void setOffset (const Vector2f &pixel_offset)
 
void setAutoScaled (const AutoScaledMode autoscaled)
 
void setNativeResolution (const Sizef &native_res)
 
const StringgetName () const
 
const SizefgetRenderedSize () const
 
const Vector2fgetRenderedOffset () const
 
void render (GeometryBuffer &buffer, const Rectf &dest_area, const Rectf *clip_area, const ColourRect &colours) const
 
void notifyDisplaySizeChanged (const Sizef &size)
 
- Public Member Functions inherited from CEGUI::Image
void render (GeometryBuffer &buffer, const Vector2f &position, const Rectf *clip_area=0) const
 
void render (GeometryBuffer &buffer, const Vector2f &position, const Rectf *clip_area, const ColourRect &colours) const
 
void render (GeometryBuffer &buffer, const Vector2f &position, const Sizef &size, const Rectf *clip_area=0) const
 
void render (GeometryBuffer &buffer, const Vector2f &position, const Sizef &size, const Rectf *clip_area, const ColourRect &colours) const
 
- Public Member Functions inherited from CEGUI::ChainedXMLHandler
const StringgetSchemaName () const
 Retrieves the schema file name to use with resources handled by this handler.
 
const StringgetDefaultResourceGroup () const
 Retrieves the default resource group to be used when handling files.
 
void elementStart (const String &element, const XMLAttributes &attributes)
 Method called to notify the handler at the start of each XML element encountered. More...
 
void elementEnd (const String &element)
 Method called to notify the handler at the end of each XML element encountered. More...
 
bool completed () const
 returns whether this chained handler has completed.
 
- Public Member Functions inherited from CEGUI::XMLHandler
 XMLHandler (void)
 XMLHandler base class constructor.
 
virtual ~XMLHandler (void)
 XMLHandler base class destructor.
 
void handleContainer (const RawDataContainer &source)
 Takes given RawDataContainer containing XML and handles it. More...
 
void handleFile (const String &fileName, const String &resourceGroup)
 Takes given file containing XML and handles it. More...
 
void handleString (const String &source)
 Takes given string containing XML source and handles it. More...
 
virtual void text (const String &text)
 Method called to notify text node, several successiv text node are agregated. More...
 

Protected Attributes

String d_name
 name used when the BasicImage was created.
 
Textured_texture
 Texture used by this image.
 
Sizef d_pixelSize
 Actual pixel size.
 
Rectf d_area
 Rect defining texture co-ords for this image.
 
Vector2f d_pixelOffset
 Defined pixel offset.
 
AutoScaledMode d_autoScaled
 Whether image is auto-scaled or not and how.
 
Sizef d_nativeResolution
 Native resolution used for autoscaling.
 
Sizef d_scaledSize
 Size after having autoscaling applied.
 
Vector2f d_scaledOffset
 Offset after having autoscaling applied.
 

Additional Inherited Members

- Static Public Member Functions inherited from CEGUI::Image
static void computeScalingFactors (AutoScaledMode mode, const Sizef &display_size, const Sizef &native_display_size, float &x_scale, float &y_scale)
 Helper able to compute scaling factors for auto scaling. More...
 
- Protected Member Functions inherited from CEGUI::Image
void elementStartLocal (const String &element, const XMLAttributes &attributes)
 Function that handles elements locally (used at end of handler chain)
 
void elementEndLocal (const String &element)
 Function that handles elements locally (used at end of handler chain)