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::Color8</title>
49  </head>
50  <body>
51<h1><CODE><a href="../../../nn/Overview.html">nn</a>::<a href="../../../nn/util/Overview.html">util</a>::Color8</CODE> Structure</h1>
52<h2>Syntax</h2>
53    <div class="section">
54<pre class="definition">struct Color8
55{
56   u8 r;
57   u8 g;
58   u8 b;
59   u8 a;
60};
61</pre>
62    </div>
63<h2>Description</h2>
64    <div class="section">
65<p>Structure representing integer colors.</p><!-- write here --></div>
66    <a name="constant" id="constant">
67<h2>Member Constants</h2>
68      <div class="section">
69        <table class="members">
70          <tr>
71            <td width="100">
72<span class="static_style" title="static">S</span>
73            </td>
74            <th>
75<span class="argument"><a href="../../../nn/util/Color8/ELEMENT_MIN.html"><CODE>ELEMENT_MIN</CODE></a></span>
76            </th>
77<td width="100">const int</td>
78<td>The minimum value of the color component.</td>
79          </tr>
80          <tr>
81            <td width="100">
82<span class="static_style" title="static">S</span>
83            </td>
84            <th>
85<span class="argument"><a href="../../../nn/util/Color8/ELEMENT_MAX.html"><CODE>ELEMENT_MAX</CODE></a></span>
86            </th>
87<td width="100">const int</td>
88<td>The maximum value of the color component.</td>
89          </tr>
90          <tr>
91            <td width="100">
92<span class="static_style" title="static">S</span>
93            </td>
94            <th>
95<span class="argument"><a href="../../../nn/util/Color8/ALPHA_MIN.html"><CODE>ALPHA_MIN</CODE></a></span>
96            </th>
97<td width="100">const int</td>
98<td>The minimum alpha value.</td>
99          </tr>
100          <tr>
101            <td width="100">
102<span class="static_style" title="static">S</span>
103            </td>
104            <th>
105<span class="argument"><a href="../../../nn/util/Color8/ALPHA_MAX.html"><CODE>ALPHA_MAX</CODE></a></span>
106            </th>
107<td width="100">const int</td>
108<td>The maximum alpha value.</td>
109          </tr>
110          <tr>
111            <td width="100">
112<span class="static_style" title="static">S</span>
113            </td>
114            <th>
115<span class="argument"><a href="../../../nn/util/Color8/ALPHA_OPACITY.html"><CODE>ALPHA_OPACITY</CODE></a></span>
116            </th>
117<td width="100">const int</td>
118<td>The alpha value for opacity.</td>
119          </tr>
120          <tr>
121            <td width="100">
122<span class="static_style" title="static">S</span>
123            </td>
124            <th>
125<span class="argument"><a href="../../../nn/util/Color8/ALPHA_TRANSPARENT.html"><CODE>ALPHA_TRANSPARENT</CODE></a></span>
126            </th>
127<td width="100">const int</td>
128<td>The alpha value for transparency.</td>
129          </tr>
130          <tr>
131            <td width="100">
132<span class="static_style" title="static">S</span>
133            </td>
134            <th>
135<span class="argument"><a href="../../../nn/util/Color8/BLACK.html"><CODE>BLACK</CODE></a></span>
136            </th>
137<td width="100"><CODE>const u32</CODE></td>
138<td>A constant for the color black.</td>
139          </tr>
140          <tr>
141            <td width="100">
142<span class="static_style" title="static">S</span>
143            </td>
144            <th>
145<span class="argument"><a href="../../../nn/util/Color8/GRAY.html"><CODE>GRAY</CODE></a></span>
146            </th>
147<td width="100"><CODE>const u32</CODE></td>
148<td>A constant for the color gray.</td>
149          </tr>
150          <tr>
151            <td width="100">
152<span class="static_style" title="static">S</span>
153            </td>
154            <th>
155<span class="argument"><a href="../../../nn/util/Color8/WHITE.html"><CODE>WHITE</CODE></a></span>
156            </th>
157<td width="100">const u32</td>
158<td>A constant for the color white.</td>
159          </tr>
160          <tr>
161            <td width="100">
162<span class="static_style" title="static">S</span>
163            </td>
164            <th>
165<span class="argument"><a href="../../../nn/util/Color8/RED.html"><CODE>RED</CODE></a></span>
166            </th>
167<td width="100">const u32</td>
168<td>A constant for the color red.</td>
169          </tr>
170          <tr>
171            <td width="100">
172<span class="static_style" title="static">S</span>
173            </td>
174            <th>
175<span class="argument"><a href="../../../nn/util/Color8/GREEN.html"><CODE>GREEN</CODE></a></span>
176            </th>
177<td width="100">const u32</td>
178<td>A constant for the color green.</td>
179          </tr>
180          <tr>
181            <td width="100">
182<span class="static_style" title="static">S</span>
183            </td>
184            <th>
185<span class="argument"><a href="../../../nn/util/Color8/BLUE.html"><CODE>BLUE</CODE></a></span>
186            </th>
187<td width="100">const u32</td>
188<td>A constant for the color blue.</td>
189          </tr>
190          <tr>
191            <td width="100">
192<span class="static_style" title="static">S</span>
193            </td>
194            <th>
195<span class="argument"><a href="../../../nn/util/Color8/YELLOW.html"><CODE>YELLOW</CODE></a></span>
196            </th>
197<td width="100">const u32</td>
198<td>A constant for the color yellow.</td>
199          </tr>
200          <tr>
201            <td width="100">
202<span class="static_style" title="static">S</span>
203            </td>
204            <th>
205<span class="argument"><a href="../../../nn/util/Color8/MAGENTA.html"><CODE>MAGENTA</CODE></a></span>
206            </th>
207<td width="100">const u32</td>
208<td>A constant for the color magenta.</td>
209          </tr>
210          <tr>
211            <td width="100">
212<span class="static_style" title="static">S</span>
213            </td>
214            <th>
215<span class="argument"><a href="../../../nn/util/Color8/CYAN.html"><CODE>CYAN</CODE></a></span>
216            </th>
217<td width="100">const u32</td>
218<td>A constant for the color cyan.</td>
219          </tr> </table>
220      </div>
221    </a> <a name="variable" id="variable">
222<h2>Member Variables</h2>
223      <div class="section">
224        <table class="members">
225          <tr>
226            <td width="100"> </td>
227            <th>
228<span class="argument">r</span>
229            </th>
230<td width="100">u8</td>
231<td>The R color component. Holds a value between 0 and 255.</td>
232          </tr>
233          <tr>
234            <td width="100"> </td>
235            <th>
236<span class="argument">g</span>
237            </th>
238<td width="100">u8</td>
239<td>The G color component. Holds a value between 0 and 255.</td>
240          </tr>
241          <tr>
242            <td width="100"> </td>
243            <th>
244<span class="argument">b</span>
245            </th>
246<td width="100">u8</td>
247<td>The B color component. Holds a value between 0 and 255.</td>
248          </tr>
249          <tr>
250            <td width="100"> </td>
251            <th>
252<span class="argument">a</span>
253            </th>
254<td width="100">u8</td>
255<td>The A color component. Holds a value between 0 and 255.</td>
256          </tr> </table>
257      </div>
258    </a> <a name="function" id="function">
259<h2>Member Functions</h2>
260      <div class="section">
261        <table class="members">
262          <tr>
263<th class="category" colspan="3">Constructors and Destructors</th>
264          </tr>
265          <tr>
266            <td width="100">  </td>
267            <th>
268<a href="../../../nn/util/Color8/Color8.html"><CODE>Color8</CODE></a>
269            </th>
270<td>This is the default constructor.</td>
271          </tr>
272          <tr>
273            <td width="100">  </td>
274            <th>
275<a href="../../../nn/util/Color8/~Color8.html"><CODE>~Color8</CODE></a>
276            </th>
277<td>Destructor.</td>
278          </tr>
279          <tr>
280<th class="category" colspan="3">Overloaded Operators</th>
281          </tr>
282          <tr>
283            <td width="100">  </td>
284            <th>
285<a href="../../../nn/util/Color8/operator=.html"><CODE>operator=</CODE></a>
286            </th>
287<td>An assignment operator for <CODE>u32</CODE> values.</td>
288          </tr>
289          <tr>
290            <td width="100">  </td>
291            <th>
292<a href="../../../nn/util/Color8/operator u32.html"><CODE>operator u32</CODE></a>
293            </th>
294<td>An operator for casting to a <CODE>u32</CODE> value.</td>
295          </tr>
296          <tr>
297            <td width="100">  </td>
298            <th>
299<a href="../../../nn/util/Color8/operator+.html"><CODE>operator+</CODE></a>
300            </th>
301<td>An addition operator for two colors.</td>
302          </tr>
303          <tr>
304            <td width="100">  </td>
305            <th>
306<a href="../../../nn/util/Color8/operator-2d.html"><CODE>operator-</CODE></a>
307            </th>
308<td>A subtraction operator for two colors.</td>
309          </tr>
310          <tr>
311            <td width="100">  </td>
312            <th>
313<a href="../../../nn/util/Color8/operator-2a.html"><CODE>operator *</CODE></a>
314            </th>
315<td>A multiplication operator for two colors.</td>
316          </tr>
317          <tr>
318            <td width="100">  </td>
319            <th>
320<a href="../../../nn/util/Color8/operator-2f.html"><CODE>operator/</CODE></a>
321            </th>
322<td>A division operator for two colors.</td>
323          </tr>
324          <tr>
325            <td width="100">  </td>
326            <th>
327<a href="../../../nn/util/Color8/operator++.html"><CODE>operator++</CODE></a>
328            </th>
329<td>The prefix increment operator.</td>
330          </tr>
331          <tr>
332            <td width="100">  </td>
333            <th>
334<a href="../../../nn/util/Color8/operator-2d-2d.html"><CODE>operator--</CODE></a>
335            </th>
336<td>The prefix decrement operator.</td>
337          </tr>
338          <tr>
339            <td width="100">  </td>
340            <th>
341<a href="../../../nn/util/Color8/operator-7c.html"><CODE>operator|</CODE></a>
342            </th>
343<td>Finds the bitwise OR as a <CODE>u32</CODE> value.</td>
344          </tr>
345          <tr>
346            <td width="100">  </td>
347            <th>
348<a href="../../../nn/util/Color8/operator&amp;.html">operator&amp;</a>
349            </th>
350<td>Finds the bitwise AND as a <CODE>u32</CODE> value.</td>
351          </tr>
352          <tr>
353            <td width="100">  </td>
354            <th>
355<a href="../../../nn/util/Color8/operator+=.html"><CODE>operator+=</CODE></a>
356            </th>
357<td>A compound assignment operator for adding two colors.</td>
358          </tr>
359          <tr>
360            <td width="100">  </td>
361            <th>
362<a href="../../../nn/util/Color8/operator-2d=.html"><CODE>operator-=</CODE></a>
363            </th>
364<td>A compound assignment operator for subtracting two colors.</td>
365          </tr>
366          <tr>
367            <td width="100">  </td>
368            <th>
369<a href="../../../nn/util/Color8/operator-2a=.html"><CODE>operator*=</CODE></a>
370            </th>
371<td>A compound assignment operator for multiplying two colors.</td>
372          </tr>
373          <tr>
374            <td width="100">  </td>
375            <th>
376<a href="../../../nn/util/Color8/operator-2f=.html"><CODE>operator/=</CODE></a>
377            </th>
378<td>A compound assignment operator for dividing two colors.</td>
379          </tr>
380          <tr>
381<th class="category" colspan="3">Set/Get</th>
382          </tr>
383          <tr>
384            <td width="100">  </td>
385            <th>
386<a href="../../../nn/util/Color8/Set.html"><CODE>Set</CODE></a>
387            </th>
388<td>Sets an RGBA value.</td>
389          </tr>
390          <tr>
391            <td width="100">  </td>
392            <th>
393<a href="../../../nn/util/Color8/ToU32.html"><CODE>ToU32</CODE></a>
394            </th>
395<td>Gets a color as a <CODE>u32</CODE> value.</td>
396          </tr>
397          <tr>
398            <td width="100">  </td>
399            <th>
400<a href="../../../nn/util/Color8/SetU32.html"><CODE>SetU32</CODE></a>
401            </th>
402<td>Sets a <CODE>u32</CODE> value.</td>
403          </tr> </table>
404      </div>
405    </a>
406<h2>Revision History</h2>
407    <div class="section">
408      <dl class="history">
409        <dt>2010/08/23</dt>
410<dd>Initial version.<br />
411        </dd>
412      </dl>
413    </div>
414  <hr><p>CONFIDENTIAL</p></body>
415</html>
416