28 #ifndef _CEGUIImage_h_
29 #define _CEGUIImage_h_
31 #include "CEGUI/ChainedXMLHandler.h"
32 #include "CEGUI/String.h"
33 #include "CEGUI/ColourRect.h"
34 #include "CEGUI/Rect.h"
82 static const String& getDataTypeName()
84 static String type(
"AutoScaledMode");
91 if (str ==
"vertical")
95 else if (str ==
"horizontal")
99 else if (str ==
"min")
103 else if (str ==
"max")
107 else if (str ==
"true" || str ==
"True")
145 assert(
false &&
"Invalid auto scaled mode");
166 virtual const String& getName()
const = 0;
168 virtual const Sizef& getRenderedSize()
const = 0;
169 virtual const Vector2f& getRenderedOffset()
const = 0;
172 const Rectf& dest_area,
173 const Rectf* clip_area,
176 virtual void notifyDisplaySizeChanged(
const Sizef& size) = 0;
181 const Rectf* clip_area = 0)
const
184 render(buffer,
Rectf(position, getRenderedSize()), clip_area, colours);
189 const Rectf* clip_area,
192 render(buffer,
Rectf(position, getRenderedSize()), clip_area, colours);
198 const Rectf* clip_area = 0)
const
201 render(buffer,
Rectf(position, size), clip_area, colours);
207 const Rectf* clip_area,
210 render(buffer,
Rectf(position, size), clip_area, colours);
222 const Sizef& display_size,
223 const Sizef& native_display_size,
229 void elementStartLocal(
const String& element,
231 void elementEndLocal(
const String& element);
236 #endif // end of guard _CEGUIImage_h_