27 #ifndef _CEGUIFalDimensions_h_
28 #define _CEGUIFalDimensions_h_
31 #include "../String.h"
34 #include "../XMLSerializer.h"
59 virtual float getValue(
const Window& wnd)
const = 0;
78 virtual float getValue(
const Window& wnd,
const Rectf& container)
const = 0;
89 virtual BaseDim* clone()
const = 0;
98 virtual void writeXMLToStream(
XMLSerializer& xml_stream)
const;
101 virtual bool handleFontRenderSizeChange(
Window& window,
102 const Font* font)
const;
105 virtual void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const = 0;
108 virtual void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const = 0;
125 void setLeftOperand(
const BaseDim* operand);
128 BaseDim* getLeftOperand()
const;
131 void setRightOperand(
const BaseDim* operand);
134 BaseDim* getRightOperand()
const;
143 void setNextOperand(
const BaseDim* operand);
146 float getValue(
const Window& wnd)
const;
147 float getValue(
const Window& wnd,
const Rectf& container)
const;
151 float getValueImpl(
const float lval,
const float rval)
const;
154 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
155 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
174 float getBaseValue()
const;
177 void setBaseValue(
float val);
180 float getValue(
const Window& wnd)
const;
181 float getValue(
const Window& wnd,
const Rectf& container)
const;
186 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
187 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
235 float getValue(
const Window& wnd)
const;
236 float getValue(
const Window& wnd,
const Rectf& container)
const;
240 virtual const Image* getSourceImage(
const Window& wnd)
const = 0;
243 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
257 const String& getSourceImage()
const;
259 void setSourceImage(
const String& image_name);
266 const Image* getSourceImage(
const Window& wnd)
const;
267 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
268 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
296 const String& getSourceProperty()
const;
298 void setSourceProperty(
const String& property_name);
305 const Image* getSourceImage(
const Window& wnd)
const;
306 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
307 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
347 const String& getWidgetName()
const;
359 void setWidgetName(
const String& name);
382 float getValue(
const Window& wnd)
const;
383 float getValue(
const Window& wnd,
const Rectf& container)
const;
388 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
389 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
422 const UDim& getBaseValue()
const;
425 void setBaseValue(
const UDim& val);
450 float getValue(
const Window& wnd)
const;
451 float getValue(
const Window& wnd,
const Rectf& container)
const;
456 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
457 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
503 const String& getName()
const;
506 void setName(
const String& name);
509 const String& getFont()
const;
512 void setFont(
const String& font);
515 const String& getText()
const;
518 void setText(
const String& text);
527 float getPadding()
const;
530 void setPadding(
float padding);
533 bool handleFontRenderSizeChange(
Window& window,
534 const Font* font)
const;
537 float getValue(
const Window& wnd)
const;
538 float getValue(
const Window& wnd,
const Rectf& container)
const;
543 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
544 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
546 const Font* getFontObject(
const Window& window)
const;
603 const String& getWidgetName()
const;
615 void setWidgetName(
const String& name);
624 const String& getPropertyName()
const;
636 void setPropertyName(
const String& property);
667 float getValue(
const Window& wnd)
const;
668 float getValue(
const Window& wnd,
const Rectf& container)
const;
673 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
674 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
722 const BaseDim& getBaseDimension()
const;
731 void setBaseDimension(
const BaseDim& dim);
761 bool handleFontRenderSizeChange(
Window& window,
762 const Font* font)
const;
838 bool isAreaFetchedFromProperty()
const;
848 const String& getAreaPropertySource()
const;
862 void setAreaPropertySource(
const String& property);
871 const String& getNamedAreaSourceLook()
const;
874 void setNamedAreaSouce(
const String& widget_look,
const String& area_name);
885 bool isAreaFetchedFromNamedArea()
const;
888 bool handleFontRenderSizeChange(
Window& window,
const Font* font)
const;
903 String d_namedAreaSourceLook;
909 #endif // end of guard _CEGUIFalDimensions_h_
Dimension d_bottom_or_height
Either the bototm edge or the height of the area.
Definition: Dimensions.h:897
Abstract interface for a generic 'dimension' class.
Definition: Dimensions.h:40
Definition: MemoryAllocatedObject.h:109
String d_imageName
name of the Image.
Definition: Dimensions.h:271
Interface for Image.
Definition: Image.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Class representing some kind of dimension.
Definition: Dimensions.h:693
DimensionOperator
Enumeration of values representing mathematical operations on dimensions.
Definition: Enums.h:122
Class that represents a target area for a widget or imagery component.
Definition: Dimensions.h:780
DimensionType d_what
the dimension of the image that we are to represent.
Definition: Dimensions.h:246
Dimension type that represents some dimension of an Image. Implements BaseDim interface.
Definition: Dimensions.h:199
ImageDimBase subclass that accesses an image by its name.
Definition: Dimensions.h:250
Dimension d_right_or_width
Either the right edge or the width of the area.
Definition: Dimensions.h:895
ImageDimBase subclass that accesses an image fetched via a property.
Definition: Dimensions.h:275
String d_propertyName
name of the property from which to fetch the image name.
Definition: Dimensions.h:310
Class that encapsulates a typeface.
Definition: Font.h:58
DimensionType
Enumeration of possible values to indicate what a given dimension represents.
Definition: Enums.h:39
Dimension type that represents some metric of a Font. Implements BaseDim interface.
Definition: Dimensions.h:471
Dimension type that represents an absolute pixel value. Implements BaseDim interface.
Definition: Dimensions.h:167
Dimension d_left
Left edge of the area.
Definition: Dimensions.h:891
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Dimension type that represents the result of an operation performed on two other dimension values...
Definition: Dimensions.h:116
Dimension d_top
Top edge of the area.
Definition: Dimensions.h:893
Dimension that has both a relative 'scale' portion and and absolute 'offset' portion.
Definition: UDim.h:92
Class used to create XML Document.
Definition: XMLSerializer.h:85
Dimension type that represents the value of a Window property. Implements BaseDim interface...
Definition: Dimensions.h:566
FontMetricType
Enumeration of possible values to indicate a particular font metric.
Definition: Enums.h:111
String class used within the GUI system.
Definition: String.h:62
Dimension type that represents an Unified dimension. Implements BaseDim interface.
Definition: Dimensions.h:403