97 lines
8.1 KiB
HTML
97 lines
8.1 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="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__ZEngine_8h.html">ZE_ZEngine.h</a>"</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> SDL_Rect &rect);
|
||
|
00076
|
||
|
00083 <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);
|
||
|
00084
|
||
|
00092 <span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a>& <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);
|
||
|
00093
|
||
|
00099 <span class="keyword">virtual</span> <a class="code" href="classZE_1_1ZRect.html#a5">~ZRect</a>();
|
||
|
00100
|
||
|
00109 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a6">operator<</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rhs) <span class="keyword">const</span>;
|
||
|
00110
|
||
|
00120 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a7">Draw</a>(Uint8 red, Uint8 green, Uint8 blue, Uint8 alpha=255) <span class="keyword">const</span>;
|
||
|
00121
|
||
|
00129 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a8">Move</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y);
|
||
|
00130
|
||
|
00138 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a9">MoveRel</a>(<span class="keywordtype">float</span> xMove, <span class="keywordtype">float</span> yMove);
|
||
|
00139
|
||
|
00147 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a10">Resize</a>(<span class="keywordtype">float</span> width, <span class="keywordtype">float</span> height);
|
||
|
00148
|
||
|
00156 <span class="keywordtype">void</span> <a class="code" href="classZE_1_1ZRect.html#a11">ResizeRel</a>(<span class="keywordtype">float</span> widthChange, <span class="keywordtype">float</span> heightChange);
|
||
|
00157
|
||
|
00165 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a12">Intersects</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rect) <span class="keyword">const</span>;
|
||
|
00166
|
||
|
00175 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a13">Contains</a>(<span class="keywordtype">float</span> x, <span class="keywordtype">float</span> y) <span class="keyword">const</span>;
|
||
|
00176
|
||
|
00184 <span class="keywordtype">bool</span> <a class="code" href="classZE_1_1ZRect.html#a13">Contains</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rect) <span class="keyword">const</span>;
|
||
|
00185
|
||
|
00193 <a class="code" href="classZE_1_1ZRect.html">ZRect</a> <a class="code" href="classZE_1_1ZRect.html#a15">Intersection</a>(<span class="keyword">const</span> <a class="code" href="classZE_1_1ZRect.html">ZRect</a> &rect) <span class="keyword">const</span>;
|
||
|
00194
|
||
|
00201 SDL_Rect <a class="code" href="classZE_1_1ZRect.html#a16">SDLrect</a>() <span class="keyword">const</span>;
|
||
|
00202
|
||
|
00209 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a17">X</a>() <span class="keyword">const</span>;
|
||
|
00210
|
||
|
00217 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a18">Y</a>() <span class="keyword">const</span>;
|
||
|
00218
|
||
|
00225 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a19">Left</a>() <span class="keyword">const</span>;
|
||
|
00226
|
||
|
00233 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a20">Right</a>() <span class="keyword">const</span>;
|
||
|
00234
|
||
|
00241 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a21">Top</a>() <span class="keyword">const</span>;
|
||
|
00242
|
||
|
00249 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a22">Bottom</a>() <span class="keyword">const</span>;
|
||
|
00250
|
||
|
00257 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a23">Width</a>() <span class="keyword">const</span>;
|
||
|
00258
|
||
|
00265 <span class="keywordtype">float</span> <a class="code" href="classZE_1_1ZRect.html#a24">Height</a>() <span class="keyword">const</span>;
|
||
|
00266 };
|
||
|
00267
|
||
|
00268 } <span class="comment">//namespace ZE</span>
|
||
|
00269
|
||
|
00270 <span class="preprocessor">#endif //__ze_zrect_h__</span>
|
||
|
</pre></div><hr><address style="align: right;"><small>Generated on Sun Apr 27 18:14:01 2003 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>
|