FastUIDraw
|
#include <rect.hpp>
Public Member Functions | |
RectT (void) | |
template<typename S > | |
RectT (const RectT< S > &rect) | |
RectT & | height (T h) |
T | height (void) const |
RectT & | max_point (const vecN< T, 2 > &p) |
RectT & | max_point (T x, T y) |
T & | max_x (void) |
T | max_x (void) const |
T & | max_y (void) |
T | max_y (void) const |
RectT & | min_point (const vecN< T, 2 > &p) |
RectT & | min_point (T x, T y) |
T & | min_x (void) |
T | min_x (void) const |
T & | min_y (void) |
T | min_y (void) const |
vecN< T, 2 > | point (enum corner_t c) const |
RectT & | sanitize_size (void) |
RectT & | size (const vecN< T, 2 > &sz) |
RectT & | size (T width, T height) |
vecN< T, 2 > | size (void) const |
RectT & | translate (const vecN< T, 2 > &tr) |
RectT & | translate (T x, T y) |
RectT & | width (T w) |
T | width (void) const |
Public Attributes | |
vecN< T, 2 > | m_max_point |
vecN< T, 2 > | m_min_point |
Additional Inherited Members | |
Public Types inherited from fastuidraw::RectEnums | |
enum | { maxx_mask = 1, maxy_mask = 2 } |
enum | corner_t { minx_miny_corner = 0, minx_maxy_corner = maxy_mask, maxx_miny_corner = maxx_mask, maxx_maxy_corner = maxx_mask | maxy_mask } |
Class to specify the geometry of a rectangle.
|
inline |
Empty ctor; intializes both m_min_point and m_max_point to (0, 0);
|
inlineexplicit |
|
inline |
Set the height of the Rect, equivalent to
h | value to make the height of the rect |
|
inline |
Returns the width of the Rect, equivalent to
|
inline |
Set m_max_point.
|
inline |
Set m_max_point.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set m_min_point.
|
inline |
Set m_min_point.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set m_max_point from m_min_point and a size. Equivalent to
sz | size to which to set the Rect |
|
inline |
Set m_max_point from m_min_point and a size. Equivalent to
width | width to which to set the rect |
height | height to which to set the rect |
|
inline |
Returns the size of the Rect; provided as a conveniance, equivalent to
|
inline |
Translate the Rect, equivalent to
tr | amount by which to translate |
|
inline |
|
inline |
Set the width of the Rect, equivalent to
w | value to make the width of the rect |
|
inline |
Returns the width of the Rect, equivalent to
vecN<T, 2> fastuidraw::RectT< T >::m_max_point |
vecN<T, 2> fastuidraw::RectT< T >::m_min_point |