Rect::SetSize

Rect::SetSize
inline void SetSize(T width, T height);
inline void SetSize(const Size<T> & sz);
Description

SetSize sets the size (width and height) of the current rectangle. The width and height are used to set the rectangle components using the following equations:

   width = x2 - x1, height = y2 - y1
Parameters
Parameters 
Description 
T width 
The value the rectangle's width is set to. 
T height 
The value the rectangle's height is set to. 
const Size<T> & sz 
A size whose Width component sets the rectangle's width and whose Height component sets its height.