inline void SetRect(T l, T t, T r, T b); inline void SetRect(const Size<T> & sz); inline void SetRect(T w, T h); inline void SetRect(const Rect<T> & rc); inline void SetRect(const Point<T> & tl, const Point<T> & br); inline void SetRect(T x, T y, const Size<T> & sz); inline void SetRect(const Point<T> & tl, const Size<T> & sz); inline void SetRect(BoundsType bt);
SetRect initializes the x1, y1, x2, and y2 components of the current rectangle. The following expression can be used to represent this result:
Parameters |
Description |
T l |
A value that sets x1 component of the rectangle. |
T t |
A value that sets y1 component of the rectangle. |
T r |
A value that sets x2 component of the rectangle. |
T b |
A value that sets y2 component of the rectangle. |
const Size<T> & sz | |
T w |
A value used to set the rectangle's width and thus its x2 (x2 = w). |
T h |
A value used to set the rectangle's height and thus its y2 (y2 = h). |
const Rect<T> & rc |
A rectangle whose components set those of the local rectangle. |
const Point<T> & tl |
A point whose x component sets x1 and whose y component sets y1 component of the rectangle.. |
const Point<T> & br |
A point whose x component sets x2 and whose y component sets y2 components of the rectangle. |
T x |
A value that sets x1 component of the rectangle. |
T y |
A value that sets y1 component of the rectangle. |
BoundsType bt | |
hr |
A range whose First component sets x1 and whose Last component sets x2 components of the rectangle. |
vr |
A range whose First component sets y1 and whose Last component sets y2 components of the rectangle. |