1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48<title>nn::util::Rect</title> 49 </head> 50 <body> 51<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/util/Overview.html">util</a>::Rect</CODE> Structure</h1> 52<h2>Syntax</h2> 53 <div class="section"> 54<pre class="definition">struct Rect 55{ 56 f32 left; 57 f32 top; 58 f32 right; 59 f32 bottom; 60}; 61</pre> 62 </div> 63<h2>Description</h2> 64 <div class="section"> 65<p>Class for representing a rectangle.</p><!-- write here --></div> 66 <a name="variable" id="variable"> 67<h2>Member Variables</h2> 68 <div class="section"> 69 <table class="members"> 70 <tr> 71 <td width="100"> </td> 72 <th> 73<span class="argument">left</span> 74 </th> 75<td width="100">f32</td> 76<td>The rectangle's left coordinate.</td> 77 </tr> 78 <tr> 79 <td width="100"> </td> 80 <th> 81<span class="argument">top</span> 82 </th> 83<td width="100">f32</td> 84<td>The rectangle's top coordinate.</td> 85 </tr> 86 <tr> 87 <td width="100"> </td> 88 <th> 89<span class="argument">right</span> 90 </th> 91<td width="100">f32</td> 92<td>The rectangle's right coordinate.</td> 93 </tr> 94 <tr> 95 <td width="100"> </td> 96 <th> 97<span class="argument">bottom</span> 98 </th> 99<td width="100">f32</td> 100<td>The rectangle's bottom coordinate.</td> 101 </tr> </table> 102 </div> 103 </a> <a name="function" id="function"> 104<h2>Member Functions</h2> 105 <div class="section"> 106 <table class="members"> 107 <tr> 108<th class="category" colspan="3">Constructors/Destructors</th> 109 </tr> 110 <tr> 111 <td width="100"> </td> 112 <th> 113<a href="../../../nn/util/Rect/Rect.html"><CODE>Rect</CODE></a> 114 </th> 115<td>This is the default constructor.</td> 116 </tr> 117 <tr> 118 <td width="100"> </td> 119 <th> 120<a href="../../../nn/util/Rect/~Rect.html"><CODE>~Rect</CODE></a> 121 </th> 122<td>Destructor.</td> 123 </tr> 124 <tr> 125<th class="category" colspan="3">Getting and Setting Values</th> 126 </tr> 127 <tr> 128 <td width="100"> </td> 129 <th> 130<a href="../../../nn/util/Rect/GetWidth.html"><CODE>GetWidth</CODE></a> 131 </th> 132<td>Gets the rectangle's width.</td> 133 </tr> 134 <tr> 135 <td width="100"> </td> 136 <th> 137<a href="../../../nn/util/Rect/GetHeight.html"><CODE>GetHeight</CODE></a> 138 </th> 139<td>Gets the rectangle's height.</td> 140 </tr> 141 <tr> 142 <td width="100"> </td> 143 <th> 144<a href="../../../nn/util/Rect/GetX.html"><CODE>GetX</CODE></a> 145 </th> 146<td>Gets the x-coordinate of the rectangle's origin.</td> 147 </tr> 148 <tr> 149 <td width="100"> </td> 150 <th> 151<a href="../../../nn/util/Rect/GetY.html"><CODE>GetY</CODE></a> 152 </th> 153<td>Gets the y-coordinate of the rectangle's origin.</td> 154 </tr> 155 <tr> 156 <td width="100"> </td> 157 <th> 158<a href="../../../nn/util/Rect/SetWidth.html"><CODE>SetWidth</CODE></a> 159 </th> 160<td>Sets the rectangle's width.</td> 161 </tr> 162 <tr> 163 <td width="100"> </td> 164 <th> 165<a href="../../../nn/util/Rect/SetHeight.html"><CODE>SetHeight</CODE></a> 166 </th> 167<td>Sets the rectangle's height.</td> 168 </tr> 169 <tr> 170 <td width="100"> </td> 171 <th> 172<a href="../../../nn/util/Rect/MoveTo.html"><CODE>MoveTo</CODE></a> 173 </th> 174<td>Moves the rectangle's upper-left coordinates.</td> 175 </tr> 176 <tr> 177 <td width="100"> </td> 178 <th> 179<a href="../../../nn/util/Rect/Move.html"><CODE>Move</CODE></a> 180 </th> 181<td>Moves (translates) a rectangle.</td> 182 </tr> 183 <tr> 184 <td width="100"> </td> 185 <th> 186<a href="../../../nn/util/Rect/SetOriginAndSize.html"><CODE>SetOriginAndSize</CODE></a> 187 </th> 188<td>Sets the origin and size.</td> 189 </tr> 190 <tr> 191<th class="category" colspan="3">Other</th> 192 </tr> 193 <tr> 194 <td width="100"> </td> 195 <th> 196<a href="../../../nn/util/Rect/Normalize.html"><CODE>Normalize</CODE></a> 197 </th> 198<td>Normalizes rectangle values.</td> 199 </tr> </table> 200 </div> 201 </a> 202<h2>Revision History</h2> 203 <div class="section"> 204 <dl class="history"> 205 <dt>2010/08/23</dt> 206<dd>Initial version.<br /> 207 </dd> 208 </dl> 209 </div> 210 <hr><p>CONFIDENTIAL</p></body> 211</html> 212