A class for tracking a rectangle by tracking two corners Top, Left and Right, Bottom.
More...
#include <rect.h>
|
typedef RectBase< NumType > | SelfType |
| Convenience typedef for describing the type you are working with.
|
|
|
NumType | Bottom |
| The Bottom edge of the rect.
|
|
NumType | Left |
| The Left edge of the rect.
|
|
NumType | Right |
| The Right edge of the rect.
|
|
NumType | Top |
| The Top edge of the rect.
|
|
template<typename NumType>
class Mezzanine::RectBase< NumType >
A class for tracking a rectangle by tracking two corners Top, Left and Right, Bottom.
Definition at line 50 of file rect.h.
template<typename NumType>
Mezzanine::RectBase< NumType >::RectBase |
( |
const NumType |
RectLeft, |
|
|
const NumType |
RectTop, |
|
|
const NumType |
RectRight, |
|
|
const NumType |
RectBottom |
|
) |
| |
|
inline |
Descriptive constructor.
- Parameters
-
RectLeft | The Left edge of the Rect. |
RectTop | The Top edge of the Rect. |
RectRight | The Right edge of the Rect. |
RectBottom | The Bottom edge of the Rect. |
Definition at line 86 of file rect.h.
template<typename NumType>
Clamps the position and size of this Rect to the provided size.
- Parameters
-
Width | The width of the area this Rect will be placed in. |
Height | The height of the area this Rect will be placed in. |
Definition at line 123 of file rect.h.
template<typename NumType>
Gets the height of this Rect.
- Returns
- Returns the height of this Rect.
Definition at line 137 of file rect.h.
template<typename NumType>
Gets the width of this Rect.
- Returns
- Returns the width of this Rect.
Definition at line 133 of file rect.h.
template<typename NumType>
Inequality Operator.
- Parameters
-
Other | The other Rect to compare with. |
- Returns
- Returns true if the two Rects express different areas.
Definition at line 161 of file rect.h.
template<typename NumType>
Assignment Operator.
- Parameters
-
Other | The other Rect to copy data from. |
Definition at line 145 of file rect.h.
template<typename NumType>
Equality Operator.
- Parameters
-
Other | The other Rect to compare with. |
- Returns
- Returns true if both Rects express the same area.
Definition at line 156 of file rect.h.
template<typename NumType>
void Mezzanine::RectBase< NumType >::SetValues |
( |
const NumType |
RectLeft, |
|
|
const NumType |
RectTop, |
|
|
const NumType |
RectRight, |
|
|
const NumType |
RectBottom |
|
) |
| |
|
inline |
Sets the value of each member of this Rect.
- Parameters
-
RectLeft | The Left edge of the Rect. |
RectTop | The Top edge of the Rect. |
RectRight | The Right edge of the Rect. |
RectBottom | The Bottom edge of the Rect. |
Definition at line 112 of file rect.h.
The documentation for this class was generated from the following file:
- /home/sqeaky/Code/MezzanineFresh/Mezzanine/src/rect.h