Rect::=

Rect::=
inline const Rect<T>& operator =(const Rect<T> & r);
inline const Rect<T>& operator =(BoundsType bt);
Description

The operator = function sets the x1, y1, x2, and y2 components of the local rectangle. The following expression is used to determine the result:

   (x1, y1, x2, y2) = (r.x1, r.y1, r.x2, r.y2)
Parameters
Parameters 
Description 
const Rect<T> & r 
A passed rectangle whose x1, y1, x2, and y2 components set those of the local rectangle. 
BoundsType bt 
An enum value that initializes the rectangle to either the Min or Max rectangle value. If the value passed is Min, (x1, y1) is set to (0, 0) and the size is 0 (Size::Min). If Max is passed, (x1, y1) is set to (0, 0) and the size of the rectangle is Size::Max
Return Value

A Rect reference to a new string whose components are set to those of a passed Rect.