28 #ifndef _CEGUIFalDimensions_h_
29 #define _CEGUIFalDimensions_h_
32 #include "../String.h"
35 #include "../XMLSerializer.h"
60 virtual float getValue(
const Window& wnd)
const = 0;
79 virtual float getValue(
const Window& wnd,
const Rectf& container)
const = 0;
90 virtual BaseDim* clone()
const = 0;
99 virtual void writeXMLToStream(
XMLSerializer& xml_stream)
const;
102 virtual bool handleFontRenderSizeChange(
Window& window,
103 const Font* font)
const;
106 virtual void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const = 0;
109 virtual void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const = 0;
126 void setLeftOperand(
const BaseDim* operand);
129 BaseDim* getLeftOperand()
const;
132 void setRightOperand(
const BaseDim* operand);
135 BaseDim* getRightOperand()
const;
144 void setNextOperand(
const BaseDim* operand);
147 float getValue(
const Window& wnd)
const;
148 float getValue(
const Window& wnd,
const Rectf& container)
const;
152 float getValueImpl(
const float lval,
const float rval)
const;
155 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
156 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
175 float getBaseValue()
const;
178 void setBaseValue(
float val);
181 float getValue(
const Window& wnd)
const;
182 float getValue(
const Window& wnd,
const Rectf& container)
const;
187 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
188 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
236 float getValue(
const Window& wnd)
const;
237 float getValue(
const Window& wnd,
const Rectf& container)
const;
241 virtual const Image* getSourceImage(
const Window& wnd)
const = 0;
244 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
258 const String& getSourceImage()
const;
260 void setSourceImage(
const String& image_name);
267 const Image* getSourceImage(
const Window& wnd)
const;
268 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
269 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
297 const String& getSourceProperty()
const;
299 void setSourceProperty(
const String& property_name);
306 const Image* getSourceImage(
const Window& wnd)
const;
307 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
308 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
348 const String& getWidgetName()
const;
360 void setWidgetName(
const String& name);
383 float getValue(
const Window& wnd)
const;
384 float getValue(
const Window& wnd,
const Rectf& container)
const;
389 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
390 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
423 const UDim& getBaseValue()
const;
426 void setBaseValue(
const UDim& val);
451 float getValue(
const Window& wnd)
const;
452 float getValue(
const Window& wnd,
const Rectf& container)
const;
457 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
458 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
504 const String& getName()
const;
507 void setName(
const String& name);
510 const String& getFont()
const;
513 void setFont(
const String& font);
516 const String& getText()
const;
519 void setText(
const String& text);
528 float getPadding()
const;
531 void setPadding(
float padding);
534 bool handleFontRenderSizeChange(
Window& window,
535 const Font* font)
const;
538 float getValue(
const Window& wnd)
const;
539 float getValue(
const Window& wnd,
const Rectf& container)
const;
544 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
545 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
547 const Font* getFontObject(
const Window& window)
const;
604 const String& getWidgetName()
const;
616 void setWidgetName(
const String& name);
625 const String& getPropertyName()
const;
637 void setPropertyName(
const String& property);
668 float getValue(
const Window& wnd)
const;
669 float getValue(
const Window& wnd,
const Rectf& container)
const;
674 void writeXMLElementName_impl(
XMLSerializer& xml_stream)
const;
675 void writeXMLElementAttributes_impl(
XMLSerializer& xml_stream)
const;
723 const BaseDim& getBaseDimension()
const;
732 void setBaseDimension(
const BaseDim& dim);
762 bool handleFontRenderSizeChange(
Window& window,
763 const Font* font)
const;
839 bool isAreaFetchedFromProperty()
const;
849 const String& getAreaPropertySource()
const;
863 void setAreaPropertySource(
const String& property);
866 void setNamedAreaSouce(
const String& widget_look,
const String& area_name);
877 bool isAreaFetchedFromNamedArea()
const;
880 bool handleFontRenderSizeChange(
Window& window,
const Font* font)
const;
895 String d_namedAreaSourceLook;
901 #endif // end of guard _CEGUIFalDimensions_h_