#include <CEGUIFalDimensions.h>
Inheritance diagram for CEGUI::BaseDim:
Public Member Functions | |
BaseDim () | |
virtual | ~BaseDim () |
float | getValue (const Window &wnd) const |
Return a value that represents this dimension as absolute pixels. | |
float | getValue (const Window &wnd, const Rect &container) const |
Return a value that represents this dimension as absolute pixels. | |
BaseDim * | clone () const |
Create an exact copy of the specialised class and return it as a pointer to a BaseDim object. | |
DimensionOperator | getDimensionOperator () const |
Return the DimensionOperator set for this BaseDim based object. | |
void | setDimensionOperator (DimensionOperator op) |
Set the DimensionOperator set for this BaseDim based object. | |
const BaseDim * | getOperand () const |
Return a pointer to the BaseDim set to be used as the other operand. | |
void | setOperand (const BaseDim &operand) |
Set the BaseDim set to be used as the other operand in calculations for this BaseDim. | |
void | writeXMLToStream (OutStream &out_stream) const |
Writes an xml representation of this BaseDim to out_stream. | |
Protected Member Functions | |
virtual float | getValue_impl (const Window &wnd) const =0 |
Implementataion method to return the base value for this BaseDim. This method should not attempt to apply the mathematical operator; this is handled automatically. | |
virtual float | getValue_impl (const Window &wnd, const Rect &container) const =0 |
Implementataion method to return the base value for this BaseDim. This method should not attempt to apply the mathematical operator; this is handled automatically by BaseDim. | |
virtual BaseDim * | clone_impl () const =0 |
Implementataion method to return a clone of this sub-class of BaseDim. This method should not attempt to clone the mathematical operator or operand; theis is handled automatically by BaseDim. | |
virtual void | writeXMLElementName_impl (OutStream &out_stream) const =0 |
Implementataion method to output real xml element name to an OutStream. This method should not write the element opening '<' character, nor close the element, it must write just the element name itself. | |
virtual void | writeXMLElementAttributes_impl (OutStream &out_stream) const =0 |
Implementataion method to output xml element attributes to an OutStream. This method should not write the element opening '<' character, nor close the element, it must write just the element attributes. |
Definition at line 38 of file CEGUIFalDimensions.h.
|
Definition at line 40 of file CEGUIFalDimensions.cpp. |
|
Definition at line 46 of file CEGUIFalDimensions.cpp. |
|
Create an exact copy of the specialised class and return it as a pointer to a BaseDim object. Since the system needs to be able to copy objects derived from BaseDim, but only has knowledge of the BaseDim interface, this clone method is provided to prevent slicing issues.
Definition at line 113 of file CEGUIFalDimensions.cpp. References clone(), clone_impl(), d_operand, and d_operator. Referenced by clone(), CEGUI::Dimension::Dimension(), CEGUI::Dimension::operator=(), CEGUI::Dimension::setBaseDimension(), and setOperand(). |
|
Implementataion method to return a clone of this sub-class of BaseDim. This method should not attempt to clone the mathematical operator or operand; theis is handled automatically by BaseDim.
Implemented in CEGUI::AbsoluteDim, CEGUI::ImageDim, CEGUI::WidgetDim, CEGUI::UnifiedDim, CEGUI::FontDim, and CEGUI::PropertyDim. Referenced by clone(). |
|
Return the DimensionOperator set for this BaseDim based object.
Definition at line 128 of file CEGUIFalDimensions.cpp. |
|
Return a pointer to the BaseDim set to be used as the other operand.
Definition at line 138 of file CEGUIFalDimensions.cpp. |
|
Return a value that represents this dimension as absolute pixels.
Definition at line 82 of file CEGUIFalDimensions.cpp. References CEGUI::DOP_ADD, CEGUI::DOP_DIVIDE, CEGUI::DOP_MULTIPLY, CEGUI::DOP_SUBTRACT, getValue(), and getValue_impl(). |
|
Return a value that represents this dimension as absolute pixels.
Definition at line 51 of file CEGUIFalDimensions.cpp. References CEGUI::DOP_ADD, CEGUI::DOP_DIVIDE, CEGUI::DOP_MULTIPLY, CEGUI::DOP_SUBTRACT, getValue(), and getValue_impl(). Referenced by CEGUI::ComponentArea::getPixelRect(), getValue(), CEGUI::PropertyDim::getValue_impl(), CEGUI::FontDim::getValue_impl(), CEGUI::WidgetDim::getValue_impl(), and CEGUI::ImageDim::getValue_impl(). |
|
Implementataion method to return the base value for this BaseDim. This method should not attempt to apply the mathematical operator; this is handled automatically by BaseDim.
Implemented in CEGUI::AbsoluteDim, CEGUI::ImageDim, CEGUI::WidgetDim, CEGUI::UnifiedDim, CEGUI::FontDim, and CEGUI::PropertyDim. |
|
Implementataion method to return the base value for this BaseDim. This method should not attempt to apply the mathematical operator; this is handled automatically.
Implemented in CEGUI::AbsoluteDim, CEGUI::ImageDim, CEGUI::WidgetDim, CEGUI::UnifiedDim, CEGUI::FontDim, and CEGUI::PropertyDim. Referenced by getValue(). |
|
Set the DimensionOperator set for this BaseDim based object.
Definition at line 133 of file CEGUIFalDimensions.cpp. |
|
Set the BaseDim set to be used as the other operand in calculations for this BaseDim.
Definition at line 143 of file CEGUIFalDimensions.cpp. References clone(). |
|
Implementataion method to output xml element attributes to an OutStream. This method should not write the element opening '<' character, nor close the element, it must write just the element attributes.
Implemented in CEGUI::AbsoluteDim, CEGUI::ImageDim, CEGUI::WidgetDim, CEGUI::UnifiedDim, CEGUI::FontDim, and CEGUI::PropertyDim. Referenced by writeXMLToStream(). |
|
Implementataion method to output real xml element name to an OutStream. This method should not write the element opening '<' character, nor close the element, it must write just the element name itself.
Implemented in CEGUI::AbsoluteDim, CEGUI::ImageDim, CEGUI::WidgetDim, CEGUI::UnifiedDim, CEGUI::FontDim, and CEGUI::PropertyDim. Referenced by writeXMLToStream(). |
|
Writes an xml representation of this BaseDim to out_stream.
Definition at line 151 of file CEGUIFalDimensions.cpp. References CEGUI::FalagardXMLHelper::dimensionOperatorToString(), writeXMLElementAttributes_impl(), writeXMLElementName_impl(), and writeXMLToStream(). Referenced by CEGUI::Dimension::writeXMLToStream(), and writeXMLToStream(). |