27 #ifndef _CEGUIImage_h_
28 #define _CEGUIImage_h_
30 #include "CEGUI/ChainedXMLHandler.h"
31 #include "CEGUI/String.h"
32 #include "CEGUI/ColourRect.h"
33 #include "CEGUI/Rect.h"
81 static const String& getDataTypeName()
83 static String type(
"AutoScaledMode");
90 if (str ==
"vertical")
94 else if (str ==
"horizontal")
98 else if (str ==
"min")
102 else if (str ==
"max")
106 else if (str ==
"true" || str ==
"True")
144 assert(
false &&
"Invalid auto scaled mode");
165 virtual const String& getName()
const = 0;
167 virtual const Sizef& getRenderedSize()
const = 0;
168 virtual const Vector2f& getRenderedOffset()
const = 0;
171 const Rectf& dest_area,
172 const Rectf* clip_area,
175 virtual void notifyDisplaySizeChanged(
const Sizef& size) = 0;
180 const Rectf* clip_area = 0)
const
183 render(buffer,
Rectf(position, getRenderedSize()), clip_area, colours);
188 const Rectf* clip_area,
191 render(buffer,
Rectf(position, getRenderedSize()), clip_area, colours);
197 const Rectf* clip_area = 0)
const
200 render(buffer,
Rectf(position, size), clip_area, colours);
206 const Rectf* clip_area,
209 render(buffer,
Rectf(position, size), clip_area, colours);
221 const Sizef& display_size,
222 const Sizef& native_display_size,
228 void elementStartLocal(
const String& element,
230 void elementEndLocal(
const String& element);
235 #endif // end of guard _CEGUIImage_h_