CL_Rect::CL_Rect - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_Rect::CL_Rect

Constructs an rectangle.

    	CL_Rect();

    	CL_Rect(
    		const CL_Rectf& rect);

    	CL_Rect(
    		int new_left, int new_top, int new_right, int new_bottom);

    	CL_Rect(
    		const CL_Point& p, const CL_Size& size);

    	CL_Rect(
    		const CL_Rect& rect);

Parameters:

left
  Initial left position of rectangle.
top
  Initial top position of rectangle.
right
  Initial right position of rectangle.
bottom
  Initial bottom position of rectangle.
point
  Initial top-left position of rectangle.
size
  Initial size of rectangle.
rect
  Initial rectangle position and size.

See also:

CL_Rect | CL_Size | CL_Rectf | CL_Point

Questions or comments, write to the ClanLib mailing list.