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");
88 static return_type fromString(
const String& str)
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")
116 static string_return_type toString(pass_type val)
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_
No auto scaling takes place.
Definition: Image.h:42
Definition: MemoryAllocatedObject.h:109
Interface for Image.
Definition: Image.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
AutoScaledMode
Definition: Image.h:39
Class representing a block of attributes associated with an XML element.
Definition: XMLAttributes.h:46
Helper class used to convert various data types to and from the format expected in Property strings...
Definition: ForwardRefs.h:84
Abstract XMLHandler based class.
Definition: ChainedXMLHandler.h:36
String class used within the GUI system.
Definition: String.h:62