93 lines
8.0 KiB
HTML
93 lines
8.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>/include/ZE_ZRect.h Source File</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<!-- Generated by Doxygen 1.3-rc2 -->
|
|
<center>
|
|
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center>
|
|
<hr><h1>/include/ZE_ZRect.h</h1><a href="ZE__ZRect_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
|
|
00002 <span class="comment"> This file is Part of the ZEngine Library for 2D game development.</span>
|
|
00003 <span class="comment"> Copyright (C) 2002, 2003 James Turk</span>
|
|
00004 <span class="comment"></span>
|
|
00005 <span class="comment"> Licensed under a BSD-style license.</span>
|
|
00006 <span class="comment"></span>
|
|
00007 <span class="comment"> The maintainer of this library is James Turk (james@conceptofzero.net) </span>
|
|
00008 <span class="comment"> and the home of this Library is http://www.zengine.sourceforge.net</span>
|
|
00009 <span class="comment">*******************************************************************************/</span>
|
|
00010
|
|
00024 <span class="preprocessor">#ifndef __ze_zrect_h__</span>
|
|
00025 <span class="preprocessor"></span><span class="preprocessor">#define __ze_zrect_h__</span>
|
|
00026 <span class="preprocessor"></span>
|
|
00027 <span class="preprocessor">#include "<a class="code" href="ZE__ZObject_8h.html">ZE_ZObject.h</a>"</span> <span class="comment">//included even though ZRect isn't derived (to obtain all other needed headers)</span>
|
|
00028
|
|
00029 <span class="keyword">namespace </span>ZE
|
|
00030 {
|
|
00031
|
|
<a name="l00037"></a><a class="code" href="classZE_1_1ZRect.html">00037</a> <span class="keyword">class </span><a class="code" href="classZE_1_1ZRect.html">ZRect</a>
|
|
00038 {
|
|
00039 <span class="keyword">protected</span>:
|
|
<a name="l00041"></a><a class="code" href="classZE_1_1ZRect.html#n0">00041</a> <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#n0">rX</a>;
|
|
<a name="l00043"></a><a class="code" href="classZE_1_1ZRect.html#n1">00043</a> <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#n1">rY</a>;
|
|
<a name="l00045"></a><a class="code" href="classZE_1_1ZRect.html#n2">00045</a> <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#n2">rWidth</a>;
|
|
<a name="l00047"></a><a class="code" href="classZE_1_1ZRect.html#n3">00047</a> <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#n3">rHeight</a>;
|
|
00048
|
|
00049 <span class="keyword">public</span>:
|
|
00050
|
|
00056 <a class="code" href="classZE_1_1ZRect.html#a0">ZRect</a>();
|
|
00057
|
|
00067 <a class="code" href="classZE_1_1ZRect.html#a0">ZRect</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y, <span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height);
|
|
00068
|
|
00075 <a class="code" href="classZE_1_1ZRect.html#a0">ZRect</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rhs);
|
|
00076
|
|
00084 <span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a>& <a class="code" href="classZE_1_1ZRect.html#a3">operator=</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rhs);
|
|
00085
|
|
00094 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a4">operator<</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rhs) <span class="keyword">const</span>;
|
|
00095
|
|
00105 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a5">Draw</a>(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255);
|
|
00106
|
|
00114 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a6">Move</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y);
|
|
00115
|
|
00123 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a7">MoveRel</a>(<span class="keywordtype">float</span> xMove, <span class="keywordtype">float</span> yMove);
|
|
00124
|
|
00132 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a8">Resize</a>(<span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height);
|
|
00133
|
|
00141 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a9">ResizeRel</a>(<span class="keywordtype">float</span> widthChange, <span class="keywordtype">float</span> heightChange);
|
|
00142
|
|
00150 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a10">Intersects</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rect) <span class="keyword">const</span>;
|
|
00151
|
|
00160 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a11">Contains</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y) <span class="keyword">const</span>;
|
|
00161
|
|
00169 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a11">Contains</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rect) <span class="keyword">const</span>;
|
|
00170
|
|
00178 <a class="code" href="classZE_1_1ZRect.html">ZRect</a> <a class="code" href="classZE_1_1ZRect.html#a13">Intersection</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rect) <span class="keyword">const</span>;
|
|
00179
|
|
00186 SDL_Rect <a class="code" href="classZE_1_1ZRect.html#a14">SDLrect</a>() <span class="keyword">const</span>;
|
|
00187
|
|
00194 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a15">X</a>() <span class="keyword">const</span>;
|
|
00195
|
|
00202 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a16">Y</a>() <span class="keyword">const</span>;
|
|
00203
|
|
00210 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a17">Left</a>() <span class="keyword">const</span>;
|
|
00211
|
|
00218 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a18">Right</a>() <span class="keyword">const</span>;
|
|
00219
|
|
00226 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a19">Top</a>() <span class="keyword">const</span>;
|
|
00227
|
|
00234 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a20">Bottom</a>() <span class="keyword">const</span>;
|
|
00235
|
|
00242 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a21">Width</a>() <span class="keyword">const</span>;
|
|
00243
|
|
00250 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a22">Height</a>() <span class="keyword">const</span>;
|
|
00251 };
|
|
00252
|
|
00253 } <span class="comment">//namspace ZE</span>
|
|
00254
|
|
00255 <span class="preprocessor">#endif //__ze_zrect_h__</span>
|
|
</pre></div><hr><address style="align: right;"><small>Generated on Sun Dec 29 02:21:35 2002 for ZEngine by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img src="doxygen.png" alt="doxygen" align="middle" border=0
|
|
width=110 height=53></a>1.3-rc2 </small></address>
|
|
</body>
|
|
</html>
|