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,
Definition MemoryAllocatedObject.h:110
Abstract XMLHandler based class.
Definition ChainedXMLHandler.h:37
Class that holds details of colours for the four corners of a rectangle.
Definition ColourRect.h:45
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition GeometryBuffer.h:44
Interface for Image.
Definition Image.h:161
static void computeScalingFactors(AutoScaledMode mode, const Sizef &display_size, const Sizef &native_display_size, float &x_scale, float &y_scale)
Helper able to compute scaling factors for auto scaling.
void elementEndLocal(const String &element)
Function that handles elements locally (used at end of handler chain)
void elementStartLocal(const String &element, const XMLAttributes &attributes)
Function that handles elements locally (used at end of handler chain)
Helper class used to convert various data types to and from the format expected in Property strings.
Definition PropertyHelper.h:84
String class used within the GUI system.
Definition String.h:64
Class representing a block of attributes associated with an XML element.
Definition XMLAttributes.h:48
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1
AutoScaledMode
Definition Image.h:40
@ ASM_Vertical
Definition Image.h:47
@ ASM_Min
Definition Image.h:56
@ ASM_Max
Definition Image.h:60
@ ASM_Disabled
No auto scaling takes place.
Definition Image.h:42
@ ASM_Horizontal
Definition Image.h:52
@ ASM_Both
Definition Image.h:68