Crazy Eddies GUI System  0.7.7
Public Member Functions | Protected Member Functions
CEGUI::AbsoluteDim Class Reference

Dimension type that represents an absolute pixel value. Implements BaseDim interface. More...

+ Inheritance diagram for CEGUI::AbsoluteDim:
+ Collaboration diagram for CEGUI::AbsoluteDim:

List of all members.

Public Member Functions

 AbsoluteDim (float val)
 Constructor.
void setValue (float val)
 Set the current value of the AbsoluteDim.
- Public Member Functions inherited from CEGUI::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 (XMLSerializer &xml_stream) const
 Writes an xml representation of this BaseDim to out_stream.

Protected Member Functions

float getValue_impl (const Window &wnd) const
 Implementataion method to return the base value for this BaseDim. This method should not attempt to apply the mathematical operator; this is handled automatically.
float getValue_impl (const Window &wnd, const Rect &container) const
 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.
void writeXMLElementName_impl (XMLSerializer &xml_stream) const
 Implementataion method to output real xml element name.
void writeXMLElementAttributes_impl (XMLSerializer &xml_stream) const
 Implementataion method to create the element attributes.
BaseDim * clone_impl () const
 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.

Detailed Description

Dimension type that represents an absolute pixel value. Implements BaseDim interface.


Constructor & Destructor Documentation

CEGUI::AbsoluteDim::AbsoluteDim ( float  val)

Constructor.

Parameters:
valfloat value to be assigned to the AbsoluteDim.