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);
865 void setNamedAreaSouce(
const String& widget_look,
const String& area_name);
876 bool isAreaFetchedFromNamedArea()
const;
879 bool handleFontRenderSizeChange(
Window& window,
const Font* font)
const;
894 String d_namedAreaSourceLook;
900 #endif // end of guard _CEGUIFalDimensions_h_