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) | |
| Relative constructor. More... | |
| 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... | |
| Boole | 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... | |
| Boole | 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.
|
inline |
Relative constructor.
| Relative | The relative portion of this dimension. |
Definition at line 74 of file unifieddim.h.
Descriptive constructor.
| Relative | The relative portion of this dimension. |
| Absolute | The absolute portion of this dimension. |
Definition at line 79 of file unifieddim.h.
|
inline |
Copy constructor.
| Other | The other UnifiedDim to copy from. |
Definition at line 83 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 109 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 294 of file unifieddim.h.
|
inline |
Inequality comparison operator.
| Other | The other UnifiedDim to compare to. |
Definition at line 235 of file unifieddim.h.
|
inline |
Multiplication operator.
| Other | The other UnifiedDim to multiply by. |
Definition at line 134 of file unifieddim.h.
|
inline |
Multiplication with Real operator.
| Other | The Real to multiply by. |
Definition at line 190 of file unifieddim.h.
|
inline |
Multiplication assignment operator.
| Other | The other UnifiedDim to multiply by. |
Definition at line 168 of file unifieddim.h.
|
inline |
Multiplication assignment with Real operator.
| Other | The Real to multiply by. |
Definition at line 206 of file unifieddim.h.
|
inline |
Addition operator.
| Other | The other UnifiedDim to add to this. |
Definition at line 120 of file unifieddim.h.
|
inline |
Addition assignment operator.
| Other | The other UnifiedDim to add to this. |
Definition at line 150 of file unifieddim.h.
|
inline |
Subtraction operator.
| Other | The other UnifiedDim to subtract from this. |
Definition at line 127 of file unifieddim.h.
|
inline |
Subtraction assignment operator.
| Other | The other UnifiedDim to subtract from this. |
Definition at line 159 of file unifieddim.h.
|
inline |
Division operator.
| Other | The other UnifiedDim to divide by. |
Definition at line 141 of file unifieddim.h.
|
inline |
Division with Real operator.
| Other | The Real to divide by. |
Definition at line 197 of file unifieddim.h.
|
inline |
Division assignment operator.
| Other | The other UnifiedDim to divide by. |
Definition at line 177 of file unifieddim.h.
|
inline |
Division assignment with Real operator.
| Other | The Real to divide by. |
Definition at line 215 of file unifieddim.h.
|
inline |
Assignment operator.
| Other | The other UnifiedDim to be assign values from. |
Definition at line 246 of file unifieddim.h.
|
inline |
Equality comparison operator.
| Other | The other UnifiedDim to compare to. |
Definition at line 228 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 273 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 258 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 94 of file unifieddim.h.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.