Simple rect used to represent a complete transform on a grid. More...
#include <gridcontainer.h>
Collaboration diagram for Mezzanine::UI::GridRect:Public Member Functions | |
| GridRect () | |
| Blank constructor. | |
| GridRect (const Whole XPos, const Whole YPos, const Whole XSize, const Whole YSize) | |
| Descriptive constructor. More... | |
| Boole | Envelopes (const GridRect &Other) |
| Gets whether or not this GridRect completely envelopes another GridRect. More... | |
| Whole | GetBottomCell () const |
| Gets the Bottom cell of this Rect. More... | |
| Whole | GetLeftCell () const |
| Gets the Left cell of this Rect. More... | |
| Whole | GetRightCell () const |
| Gets the Right cell of this Rect. More... | |
| Whole | GetTopCell () const |
| Gets the Top cell of this Rect. More... | |
| Boole | operator!= (const GridRect &Other) |
| Inequality comparison operator. More... | |
| Boole | operator== (const GridRect &Other) |
| 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... | |
Static Public Member Functions | |
| static String | GetSerializableName () |
| Get the name of the the XML tag this class will leave behind as its instances are serialized. More... | |
Public Attributes | |
| GridVector2 | Position |
| The Cell position of this rect. | |
| GridVector2 | Size |
| The Cell size of this rect. | |
Simple rect used to represent a complete transform on a grid.
Definition at line 91 of file gridcontainer.h.
| Mezzanine::UI::GridRect::GridRect | ( | const Whole | XPos, |
| const Whole | YPos, | ||
| const Whole | XSize, | ||
| const Whole | YSize | ||
| ) |
Descriptive constructor.
| XPos | The Cell position on the X axis. |
| YPos | The Cell position on the Y axis. |
| XSize | The number of cells this rect occupies on the X axis. |
| YSize | The number of cells this rect occupies on the Y axis. |
Definition at line 85 of file gridcontainer.cpp.
| Whole Mezzanine::UI::GridRect::GetBottomCell | ( | ) | const |
Gets the Bottom cell of this Rect.
Definition at line 102 of file gridcontainer.cpp.
| Whole Mezzanine::UI::GridRect::GetLeftCell | ( | ) | const |
Gets the Left cell of this Rect.
Definition at line 93 of file gridcontainer.cpp.
| Whole Mezzanine::UI::GridRect::GetRightCell | ( | ) | const |
Gets the Right cell of this Rect.
Definition at line 96 of file gridcontainer.cpp.
|
static |
Get the name of the the XML tag this class will leave behind as its instances are serialized.
Definition at line 158 of file gridcontainer.cpp.
| Whole Mezzanine::UI::GridRect::GetTopCell | ( | ) | const |
Gets the Top cell of this Rect.
Definition at line 99 of file gridcontainer.cpp.
Inequality comparison operator.
| Other | The other GridRect to compare with. |
Definition at line 167 of file gridcontainer.cpp.
Equality comparison operator.
| Other | The other GridRect to compare with. |
Definition at line 164 of file gridcontainer.cpp.
| void Mezzanine::UI::GridRect::ProtoDeSerialize | ( | const XML::Node & | SelfRoot | ) |
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 129 of file gridcontainer.cpp.
| void Mezzanine::UI::GridRect::ProtoSerialize | ( | XML::Node & | ParentNode | ) | const |
Convert this class to an XML::Node ready for serialization.
| ParentNode | The point in the XML hierarchy that all this rect should be appended to. |
Definition at line 113 of file gridcontainer.cpp.
1.8.9.1. Thanks to the
Open Icon Library
for help with some of the icons.