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