30 #ifndef _CEGUIImage_h_
31 #define _CEGUIImage_h_
33 #include "CEGUIBase.h"
34 #include "CEGUIString.h"
35 #include "CEGUIRect.h"
36 #include "CEGUIColourRect.h"
37 #include "CEGUIVector.h"
38 #include "CEGUISize.h"
39 #include "CEGUIRenderer.h"
40 #include "CEGUIXMLSerializer.h"
45 # pragma warning(push)
46 # pragma warning(disable : 4251)
77 float getWidth(
void)
const {
return d_scaledWidth;}
87 float getHeight(
void)
const {
return d_scaledHeight;}
127 const String& getName(
void)
const;
137 const String& getImagesetName(
void)
const;
156 const Rect& getSourceTextureArea(
void)
const;
197 draw(
Rect(position.d_x, position.d_y, position.d_x + size.d_width, position.d_y + size.d_height), position.d_z, clip_rect,
198 ColourRect(top_left_colour, top_right_colour, bottom_left_colour, bottom_right_colour), quad_split_mode);
241 draw(dest_rect, z, clip_rect,
ColourRect(top_left_colour, top_right_colour, bottom_left_colour, bottom_right_colour), quad_split_mode);
275 draw(
Rect(position.d_x, position.d_y, position.d_x + size.d_width, position.d_y + size.d_height), position.d_z, clip_rect, colours, quad_split_mode);
309 draw(
Rect(position.d_x, position.d_y, position.d_x + getWidth(), position.d_y + getHeight()), position.d_z, clip_rect, colours, quad_split_mode);
349 draw(
Rect(position.d_x, position.d_y, position.d_x + getWidth(), position.d_y + getHeight()), position.d_z, clip_rect,
ColourRect(top_left_colour, top_right_colour, bottom_left_colour, bottom_right_colour), quad_split_mode);
399 friend struct std::pair<const String, Image>;
436 Image(
const Imageset* owner,
const String& name,
const Rect& area,
const Point& render_offset,
float horzScaling = 1.0f,
float vertScaling = 1.0f);
474 void setHorzScaling(
float factor);
487 void setVertScaling(
float factor);
499 float d_scaledHeight;
500 Point d_scaledOffset;
506 #if defined(_MSC_VER)
507 # pragma warning(pop)
510 #endif // end of guard _CEGUIImage_h_