Crazy Eddie's GUI System 0.8.7
|
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 String & | getName () const |
const Sizef & | getRenderedSize () const |
const Vector2f & | getRenderedOffset () const |
void | render (GeometryBuffer &buffer, const Rectf &dest_area, const Rectf *clip_area, const ColourRect &colours) const |
void | notifyDisplaySizeChanged (const Sizef &renderer_display_size) |
Notifies the class that the display size of the renderer has changed so that. | |
![]() | |
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 |
![]() | |
const String & | getSchemaName () const |
Retrieves the schema file name to use with resources handled by this handler. | |
const String & | getDefaultResourceGroup () 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. | |
void | elementEnd (const String &element) |
Method called to notify the handler at the end of each XML element encountered. | |
bool | completed () const |
returns whether this chained handler has completed. | |
![]() | |
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. | |
void | handleFile (const String &fileName, const String &resourceGroup) |
Takes given file containing XML and handles it. | |
void | handleString (const String &source) |
Takes given string containing XML source and handles it. | |
virtual void | text (const String &text) |
Method called to notify text node, several successiv text node are agregated. | |
Protected Member Functions | |
void | updateScaledSizeAndOffset (const Sizef &renderer_display_size) |
Updates the scaled size and offset values according to the new display size of the renderer. | |
void | updateScaledSize (const Sizef &renderer_display_size) |
Updates only the scaled size values according to the new display size of the renderer. | |
void | updateScaledOffset (const Sizef &renderer_display_size) |
Updates only the scaled offset values according to the new display size of the renderer. | |
![]() | |
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) | |
![]() | |
void | cleanupChainedHandler () |
clean up any chained handler. | |
Protected Attributes | |
String | d_name |
name used when the BasicImage was created. | |
Texture * | d_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. | |
![]() | |
ChainedXMLHandler * | d_chainedHandler |
chained xml handler object. | |
bool | d_completed |
is the chained handler completed. | |
bool | d_deleteChaniedHandler |
should the chained handler be deleted by us? | |
Additional Inherited Members | |
![]() | |
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. | |
Implements CEGUI::Image.
Implements CEGUI::Image.
Implements CEGUI::Image.
Notifies the class that the display size of the renderer has changed so that.
Implements CEGUI::Image.
|
virtual |
Implements CEGUI::Image.