This class represents a 2D rect which can express the size and position of a renderable on screen.
More...
#include <unifieddim.h>
|
|
| UnifiedRect () |
| | Class constructor.
|
| |
| | UnifiedRect (const UnifiedVec2 &Pos, const UnifiedVec2 &Area) |
| | UnifiedVec2 constructor. More...
|
| |
| | UnifiedRect (const UnifiedDim &PositionX, const UnifiedDim &PositionY, const UnifiedDim &SizeX, const UnifiedDim &SizeY) |
| | UnifiedDim constructor. More...
|
| |
| | UnifiedRect (const Real &PositionXrel, const Real &PositionYrel, const Real &SizeXrel, const Real &SizeYrel, const Real &PositionXabs, const Real &PositionYabs, const Real &SizeXabs, const Real &SizeYabs) |
| | Real constructor. More...
|
| |
|
| ~UnifiedRect () |
| | Class destructor.
|
| |
| Rect | CalculateActualDimensions (const Rect &Actual, bool AsChild=true) const |
| | Calculates the actual values when a Rect with actual dimensions has this unified rect applied to it. More...
|
| |
| bool | operator!= (const UnifiedRect &Other) const |
| | Inequality comparison operator. More...
|
| |
| UnifiedRect & | operator= (const UnifiedRect &Other) |
| | Assignment operator. More...
|
| |
| bool | operator== (const UnifiedRect &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 members of this unified rect to zero.
|
| |
| void | SetValues (const UnifiedVec2 &Pos, const UnifiedVec2 &Area) |
| | Sets all data members of this unified rect explicitly. More...
|
| |
| void | SetValues (const UnifiedDim &PositionX, const UnifiedDim &PositionY, const UnifiedDim &SizeX, const UnifiedDim &SizeY) |
| | Sets all data members of this unified rect explicitly. More...
|
| |
| void | SetValues (const Real &PositionXrel, const Real &PositionYrel, const Real &SizeXrel, const Real &SizeYrel, const Real &PositionXabs, const Real &PositionYabs, const Real &SizeXabs, const Real &SizeYabs) |
| | Sets all data members of this unified rect explicitly. More...
|
| |
This class represents a 2D rect which can express the size and position of a renderable on screen.
Definition at line 652 of file unifieddim.h.
UnifiedVec2 constructor.
- Parameters
-
| Pos | The screen position of the rect. |
| Area | The width and height of the rect. |
Definition at line 675 of file unifieddim.h.
UnifiedDim constructor.
- Parameters
-
| PositionX | The position on the X plane. |
| PositionY | The position on the Y plane. |
| SizeX | The size on the X plane. |
| SizeY | The size on the Y plane. |
Definition at line 682 of file unifieddim.h.
| Mezzanine::UI::UnifiedRect::UnifiedRect |
( |
const Real & |
PositionXrel, |
|
|
const Real & |
PositionYrel, |
|
|
const Real & |
SizeXrel, |
|
|
const Real & |
SizeYrel, |
|
|
const Real & |
PositionXabs, |
|
|
const Real & |
PositionYabs, |
|
|
const Real & |
SizeXabs, |
|
|
const Real & |
SizeYabs |
|
) |
| |
|
inline |
Real constructor.
- Parameters
-
| PositionXrel | The relative position portion of the X dimension. |
| PositionYrel | The relative position portion of the Y dimension. |
| SizeXrel | The relative size portion of the X dimension. |
| SizeYrel | The relative size portion of the Y dimension. |
| PositionXabs | The absolute position portion of the X dimension. |
| PositionYabs | the absolute position portion of the Y dimension. |
| SizeXabs | The absolute size portion of the X dimension. |
| SizeYabs | the absolute size portion of the Y dimension. |
Definition at line 696 of file unifieddim.h.
| Rect Mezzanine::UI::UnifiedRect::CalculateActualDimensions |
( |
const Rect & |
Actual, |
|
|
bool |
AsChild = true |
|
) |
| const |
|
inline |
Calculates the actual values when a Rect with actual dimensions has this unified rect applied to it.
- Parameters
-
| Actual | A Rect containing the actual(pixel) position and size to use as a base for the calculation. |
- Returns
- Returns a Rect containing the result position and size in actual (pixel) units.
Definition at line 751 of file unifieddim.h.
| static String Mezzanine::UI::UnifiedRect::GetSerializableName |
( |
) | |
|
|
inlinestatic |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.
- Returns
- A string containing the name of this class.
Definition at line 860 of file unifieddim.h.
| bool Mezzanine::UI::UnifiedRect::operator!= |
( |
const UnifiedRect & |
Other) | |
const |
|
inline |
Inequality comparison operator.
- Parameters
-
- Returns
- Returns true if these UnifiedRect's are not equal, false otherwise.
Definition at line 771 of file unifieddim.h.
Assignment operator.
- Parameters
-
- Returns
- Returns a reference to this.
Definition at line 782 of file unifieddim.h.
| bool Mezzanine::UI::UnifiedRect::operator== |
( |
const UnifiedRect & |
Other) | |
const |
|
inline |
Equality comparison operator.
- Parameters
-
- Returns
- Returns true if these UnifiedRect's are equal, false otherwise.
Definition at line 764 of file unifieddim.h.
| void Mezzanine::UI::UnifiedRect::ProtoDeSerialize |
( |
const XML::Node & |
SelfRoot) | |
|
|
inline |
Take the data stored in an XML Node and overwrite this object with it.
- Parameters
-
| SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 815 of file unifieddim.h.
| void Mezzanine::UI::UnifiedRect::ProtoSerialize |
( |
XML::Node & |
ParentNode) | |
const |
|
inline |
Convert this class to an XML::Node ready for serialization.
- Parameters
-
| ParentNode | The point in the XML hierarchy that all this renderable should be appended to. |
Definition at line 794 of file unifieddim.h.
Sets all data members of this unified rect explicitly.
- Parameters
-
| Position | The screen position of the rect. |
| Area | The width and height of the rect. |
Definition at line 711 of file unifieddim.h.
Sets all data members of this unified rect explicitly.
- Parameters
-
| PositionX | The position on the X plane. |
| PositionY | The position on the Y plane. |
| SizeX | The size on the X plane. |
| SizeY | The size on the Y plane. |
Definition at line 721 of file unifieddim.h.
| void Mezzanine::UI::UnifiedRect::SetValues |
( |
const Real & |
PositionXrel, |
|
|
const Real & |
PositionYrel, |
|
|
const Real & |
SizeXrel, |
|
|
const Real & |
SizeYrel, |
|
|
const Real & |
PositionXabs, |
|
|
const Real & |
PositionYabs, |
|
|
const Real & |
SizeXabs, |
|
|
const Real & |
SizeYabs |
|
) |
| |
|
inline |
Sets all data members of this unified rect explicitly.
- Parameters
-
| PositionXrel | The relative position portion of the X dimension. |
| PositionYrel | The relative position portion of the Y dimension. |
| SizeXrel | The relative size portion of the X dimension. |
| SizeYrel | The relative size portion of the Y dimension. |
| PositionXabs | The absolute position portion of the X dimension. |
| PositionYabs | the absolute position portion of the Y dimension. |
| SizeXabs | The absolute size portion of the X dimension. |
| SizeYabs | the absolute size portion of the Y dimension. |
Definition at line 735 of file unifieddim.h.
The documentation for this class was generated from the following file: