This class represents both the relative and absolute values that can be expressed for the values on one dimension for a UI renderable. More...
#include <unifieddim.h>
Public Member Functions | |
UnifiedDim () | |
Class constructor. | |
UnifiedDim (const Real &Relative, const Real &Absolute) | |
Descriptive constructor. More... | |
UnifiedDim (const UnifiedDim &Other) | |
Copy constructor. More... | |
~UnifiedDim () | |
Class destructor. | |
Real | CalculateActualDimension (const Real &Actual) const |
Calculates the actual value when a Real in pixels has this unified dim applied to it. More... | |
bool | operator!= (const UnifiedDim &Other) const |
Inequality comparison operator. More... | |
UnifiedDim | operator* (const UnifiedDim &Other) const |
Multiplication operator. More... | |
UnifiedDim | operator* (const Real &Other) |
Multiplication with Real operator. More... | |
UnifiedDim & | operator*= (const UnifiedDim &Other) |
Multiplication assignment operator. More... | |
UnifiedDim & | operator*= (const Real &Other) |
Multiplication assignment with Real operator. More... | |
UnifiedDim | operator+ (const UnifiedDim &Other) const |
Addition operator. More... | |
UnifiedDim & | operator+= (const UnifiedDim &Other) |
Addition assignment operator. More... | |
UnifiedDim | operator- (const UnifiedDim &Other) const |
Subtraction operator. More... | |
UnifiedDim & | operator-= (const UnifiedDim &Other) |
Subtraction assignment operator. More... | |
UnifiedDim | operator/ (const UnifiedDim &Other) const |
Division operator. More... | |
UnifiedDim | operator/ (const Real &Other) |
Division with Real operator. More... | |
UnifiedDim & | operator/= (const UnifiedDim &Other) |
Division assignment operator. More... | |
UnifiedDim & | operator/= (const Real &Other) |
Division assignment with Real operator. More... | |
UnifiedDim & | operator= (const UnifiedDim &Other) |
Assignment operator. More... | |
bool | operator== (const UnifiedDim &Other) const |
Equality comparison operator. More... | |
void | ProtoDeSerialize (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it. More... | |
void | ProtoSerialize (XML::Node &ParentNode) const |
Convert this class to an XML::Node ready for serialization. More... | |
void | SetIdentity () |
Sets all values of this dimension to zero. | |
void | SetValues (const Real &Relative, const Real &Absolute) |
Sets the values of this dimension. More... | |
Static Public Member Functions | |
static String | GetSerializableName () |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Public Attributes | |
Real | Abs |
The absolute value on this dimension. | |
Real | Rel |
The relative value on this dimension. | |
This class represents both the relative and absolute values that can be expressed for the values on one dimension for a UI renderable.
Definition at line 56 of file unifieddim.h.
Descriptive constructor.
Relative | The relative portion of this dimension. |
Absolute | The absolute portion of this dimension. |
Definition at line 75 of file unifieddim.h.
|
inline |
Copy constructor.
Other | The other UnifiedDim to copy from. |
Definition at line 79 of file unifieddim.h.
Calculates the actual value when a Real in pixels has this unified dim applied to it.
Actual | A Real containing the actual(pixel) dimension to use as a base for the calculation. |
Definition at line 105 of file unifieddim.h.
|
inlinestatic |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.
Definition at line 290 of file unifieddim.h.
|
inline |
Inequality comparison operator.
Other | The other UnifiedDim to compare to. |
Definition at line 231 of file unifieddim.h.
|
inline |
Multiplication operator.
Other | The other UnifiedDim to multiply by. |
Definition at line 130 of file unifieddim.h.
|
inline |
Multiplication with Real operator.
Other | The Real to multiply by. |
Definition at line 186 of file unifieddim.h.
|
inline |
Multiplication assignment operator.
Other | The other UnifiedDim to multiply by. |
Definition at line 164 of file unifieddim.h.
|
inline |
Multiplication assignment with Real operator.
Other | The Real to multiply by. |
Definition at line 202 of file unifieddim.h.
|
inline |
Addition operator.
Other | The other UnifiedDim to add to this. |
Definition at line 116 of file unifieddim.h.
|
inline |
Addition assignment operator.
Other | The other UnifiedDim to add to this. |
Definition at line 146 of file unifieddim.h.
|
inline |
Subtraction operator.
Other | The other UnifiedDim to subtract from this. |
Definition at line 123 of file unifieddim.h.
|
inline |
Subtraction assignment operator.
Other | The other UnifiedDim to subtract from this. |
Definition at line 155 of file unifieddim.h.
|
inline |
Division operator.
Other | The other UnifiedDim to divide by. |
Definition at line 137 of file unifieddim.h.
|
inline |
Division with Real operator.
Other | The Real to divide by. |
Definition at line 193 of file unifieddim.h.
|
inline |
Division assignment operator.
Other | The other UnifiedDim to divide by. |
Definition at line 173 of file unifieddim.h.
|
inline |
Division assignment with Real operator.
Other | The Real to divide by. |
Definition at line 211 of file unifieddim.h.
|
inline |
Assignment operator.
Other | The other UnifiedDim to be assign values from. |
Definition at line 242 of file unifieddim.h.
|
inline |
Equality comparison operator.
Other | The other UnifiedDim to compare to. |
Definition at line 224 of file unifieddim.h.
|
inline |
Take the data stored in an XML Node and overwrite this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 269 of file unifieddim.h.
|
inline |
Convert this class to an XML::Node ready for serialization.
ParentNode | The point in the XML hierarchy that all this renderable should be appended to. |
Definition at line 254 of file unifieddim.h.
Sets the values of this dimension.
Relative | The relative portion of this dimension. |
Absolute | The absolute portion of this dimension. |
Definition at line 90 of file unifieddim.h.