Crazy Eddie's GUI System
0.8.4
|
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. | |
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. | |
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. |