1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
- <html><head>
- <title>rect</title>
- </head><body>
- <p>[<a href="mxdoc.htm">mainpage</a>]
- [<a href="tags.htm">tags</a>]<br>
- <h1><a name="rect">module: rect</a></h1><p><b>Basic rectangle handling</b><p>
- This module contains typedefs, functions and macros for handling
- rectangles. Also included are macros to determine intersections and unions
- areas.
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p>Part of the <a href="deds.htm">deds</a> library.<ul><li>
- <a name="MX_RECT"><code>MX_RECT</code></a>
- <p>
- <p><b>A basic rectangle</b><p>
- This type is a basic rectangle with an upper-left at x1,y1 and
- lower-right at x2, y2.
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)
- <p>member: <b>
- int x1</b> Left coordinate
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)
- <p>member: <b>
- int y1</b> Upper coordinate
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)
- <p>member: <b>
- int x2</b> Right coordinate
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)
- <p>member: <b>
- int y2</b> Lower coordinate
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p></li>
- <li>
- <a name=" define MXRECT_VALID(A)"><code># define MXRECT_VALID(A)</code></a>
- <p>
- <p><b>Is MX_RECT valid?</b><p>
- This macro returns non-zero if the upper-left of the rectangle is
- above and to the right of the lower-left of the rectangle, zero otherwise.
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p></li>
- <li>
- <a name=" define MXRECT_INTERSECT(A, B, R)"><code># define MXRECT_INTERSECT(A, B, R)</code></a>
- <p>
- <p><b>Find intersection of two rectangles</b><p>
- This macro finds the intersection of two rectangles.
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p></li>
- <li>
- <a name=" define MXRECT_UNION(A, B, R)"><code># define MXRECT_UNION(A, B, R)</code></a>
- <p>
- <p><b>Union of two rectangles. </b><p>
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p></li>
- <li>
- <a name=" define MXRECT_CONTAINS(R, X, Y)"><code># define MXRECT_CONTAINS(R, X, Y)</code></a>
- <p>
- <p><b>Point contained in MX_RECT</b><p>
- This macro return non-zero if a given x,y point is indose the
- rectangel error, zero otherwise.
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p></li>
- <li>
- <a name=" define MXRECTS_OVERLAP(A, B)"><code># define MXRECTS_OVERLAP(A, B)</code></a>
- <p>
- <p><b>Do MX_RECT overlap?</b><p>
- This macro return non-zero if two rectangels overlap, zero otherwise.
- (<a href="../include/deds/rect.h">../include/deds/rect.h</a>)<p></li>
- <li>
- <a name="void mx_rect_move(MX_RECT* rrect, int x, int y)"><code>void mx_rect_move(MX_RECT* rrect, int x, int y)</code></a>
- <p>
- <p><b>Move a MX_RECT</b><p>
- This function moves a MX_REXT so that the upper left of the rectangle
- is at a given x,y, position. The size of the rectangle is not changed.
- (<a href="../include/deds/rect.c">../include/deds/rect.c</a>)<p></li>
- <li>
- <a name="void mx_rect_resize(MX_RECT* rrect, int w, int h)"><code>void mx_rect_resize(MX_RECT* rrect, int w, int h)</code></a>
- <p>
- <p><b>Resize a MX_RECT</b><p>
- This function resizes a MX_REXT to a given size. The upper left point
- of the rectangle does not change.
- (<a href="../include/deds/rect.c">../include/deds/rect.c</a>)<p></li>
- </ul><p>Generated by <a href="http://www.deleveld.dds.nl/mxdoc/index.htm">MXDOC</a> 2.2 on Sun Feb 4 15:16:26 2007
- </body></html>
|