<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_Rect - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_Rect</h1> <p> 2D (left,top,right,bottom) rectangle structure. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <i>none</i> <br>Group: Core (Math)</p> <p> #include <ClanLib/core.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Rect__CL_Rect.html">CL_Rect</a></p></td><td valign=top><p> Constructs an rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__operator +=.html">operator +=</a></p></td><td valign=top><p> Rect += Rect operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__operator -=.html">operator -=</a></p></td><td valign=top><p> Rect -= Rect operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__operator +.html">operator +</a></p></td><td valign=top><p> Rect + Rect operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__operator -.html">operator -</a></p></td><td valign=top><p> Rect - Rect operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__operator ==.html">operator ==</a></p></td><td valign=top><p> Rect == Rect operator.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__operator !=.html">operator !=</a></p></td><td valign=top><p> Rect != Rect operator.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Rect__left.html">left</a></p></td><td valign=top><p> X1-coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__top.html">top</a></p></td><td valign=top><p> Y1-coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__right.html">right</a></p></td><td valign=top><p> X2-coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__bottom.html">bottom</a></p></td><td valign=top><p> Y2-coordinate.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__get_width.html">get_width</a></p></td><td valign=top><p> Returns the width of the rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__get_height.html">get_height</a></p></td><td valign=top><p> Returns the height of the rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__get_size.html">get_size</a></p></td><td valign=top><p> Returns the size of the rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__is_inside.html">is_inside</a></p></td><td valign=top><p> Returns true if point is inside the rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__is_overlapped.html">is_overlapped</a></p></td><td valign=top><p> Returns true if rectangle passed is overlapping or inside this rectangle.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__get_rot_bounds.html">get_rot_bounds</a></p></td><td valign=top><p> Returns another CL_Rect containing a rotated version of this one.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_Rect__set_size.html">set_size</a></p></td><td valign=top><p> Sets the size of the rectangle, maintaining top/left position.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__calc_union.html">calc_union</a></p></td><td valign=top><p> Calculates and returns the union of two rectangles.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__normalize.html">normalize</a></p></td><td valign=top><p> Normalize rectangle. Ensures that left is less than right and top is less than bottom.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_Rect__apply_alignment.html">apply_alignment</a></p></td><td valign=top><p> Applies an origin and offset pair to this rectangle</p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Core/Math! !header=core.h! <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->