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>nw::ut::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">ELEMENT_MIN</a></span> 79 </th> 80 <td>Minimum value of color elements.</td> 81 </tr> 82 <tr> 83 <td width="100"> 84 <span class="static_style" title="static">S</span> 85 </td> 86 <th> 87 <span class="argument"><a href="../../../nw/ut/Color8/ELEMENT_MAX.html">ELEMENT_MAX</a></span> 88 </th> 89 <td>Maximum value of color elements.</td> 90 </tr> 91 <tr> 92 <td width="100"> 93 <span class="static_style" title="static">S</span> 94 </td> 95 <th> 96 <span class="argument"><a href="../../../nw/ut/Color8/ALPHA_MIN.html">ALPHA_MIN</a></span> 97 </th> 98 <td>Minimum value of alpha.</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="../../../nw/ut/Color8/ALPHA_MAX.html">ALPHA_MAX</a></span> 106 </th> 107 <td>Maximum value of alpha.</td> 108 </tr> 109 <tr> 110 <td width="100"> 111 <span class="static_style" title="static">S</span> 112 </td> 113 <th> 114 <span class="argument"><a href="../../../nw/ut/Color8/ALPHA_OPACITY.html">ALPHA_OPACITY</a></span> 115 </th> 116 <td>Alpha value for opacity.</td> 117 </tr> 118 <tr> 119 <td width="100"> 120 <span class="static_style" title="static">S</span> 121 </td> 122 <th> 123 <span class="argument"><a href="../../../nw/ut/Color8/ALPHA_TRANSPARENT.html">ALPHA_TRANSPARENT</a></span> 124 </th> 125 <td>Alpha value for transparency.</td> 126 </tr> 127 <tr> 128 <td width="100"> 129 <span class="static_style" title="static">S</span> 130 </td> 131 <th> 132 <span class="argument"><a href="../../../nw/ut/Color8/BLACK.html">BLACK</a></span> 133 </th> 134 <td>Constant for black.</td> 135 </tr> 136 <tr> 137 <td width="100"> 138 <span class="static_style" title="static">S</span> 139 </td> 140 <th> 141 <span class="argument"><a href="../../../nw/ut/Color8/GRAY.html">GRAY</a></span> 142 </th> 143 <td>Constant for gray.</td> 144 </tr> 145 <tr> 146 <td width="100"> 147 <span class="static_style" title="static">S</span> 148 </td> 149 <th> 150 <span class="argument"><a href="../../../nw/ut/Color8/WHITE.html">WHITE</a></span> 151 </th> 152 <td>Constant for white.</td> 153 </tr> 154 <tr> 155 <td width="100"> 156 <span class="static_style" title="static">S</span> 157 </td> 158 <th> 159 <span class="argument"><a href="../../../nw/ut/Color8/RED.html">RED</a></span> 160 </th> 161 <td>Constant for red.</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/GREEN.html">GREEN</a></span> 169 </th> 170 <td>Constant for green.</td> 171 </tr> 172 <tr> 173 <td width="100"> 174 <span class="static_style" title="static">S</span> 175 </td> 176 <th> 177 <span class="argument"><a href="../../../nw/ut/Color8/BLUE.html">BLUE</a></span> 178 </th> 179 <td>Constant for blue.</td> 180 </tr> 181 <tr> 182 <td width="100"> 183 <span class="static_style" title="static">S</span> 184 </td> 185 <th> 186 <span class="argument"><a href="../../../nw/ut/Color8/YELLOW.html">YELLOW</a></span> 187 </th> 188 <td>Constant for yellow.</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="../../../nw/ut/Color8/MAGENTA.html">MAGENTA</a></span> 196 </th> 197 <td>Constant for magenta.</td> 198 </tr> 199 <tr> 200 <td width="100"> 201 <span class="static_style" title="static">S</span> 202 </td> 203 <th> 204 <span class="argument"><a href="../../../nw/ut/Color8/CYAN.html">CYAN</a></span> 205 </th> 206 <td>Constant for cyan.</td> 207 </tr> </table> 208 </div> 209 </a> <a name="variable" id="variable"> 210 <h2>Member Variables</h2> 211 <div class="section"> 212 <table class="members"> 213 <tr> 214 <td width="100"> </td> 215 <th> 216 <span class="argument">r</span> 217 </th> 218 <td>R component of a color. Stores a value in ranging from 0 to 255.</td> 219 </tr> 220 <tr> 221 <td width="100"> </td> 222 <th> 223 <span class="argument">g</span> 224 </th> 225 <td>G component of a color. Stores a value in ranging from 0 to 255.</td> 226 </tr> 227 <tr> 228 <td width="100"> </td> 229 <th> 230 <span class="argument">b</span> 231 </th> 232 <td>B component of a color. Stores a value in ranging from 0 to 255.</td> 233 </tr> 234 <tr> 235 <td width="100"> </td> 236 <th> 237 <span class="argument">a</span> 238 </th> 239 <td>A component of a color. Stores a value in ranging from 0 to 255.</td> 240 </tr> </table> 241 </div> 242 </a> <a name="function" id="function"> 243 <h2>Member Functions</h2> 244 <div class="section"> 245 <table class="members"> 246 <tr> 247 <th class="category" colspan="3">Constructors and Destructors</th> 248 </tr> 249 <tr> 250 <td width="100"> </td> 251 <th> 252 <a href="../../../nw/ut/Color8/Color8.html">Color8</a> 253 </th> 254 <td>This is the default constructor.</td> 255 </tr> 256 <tr> 257 <td width="100"> </td> 258 <th> 259 <a href="../../../nw/ut/Color8/~Color8.html">~Color8</a> 260 </th> 261 <td>Destructor.</td> 262 </tr> 263 <tr> 264 <th class="category" colspan="3">Operator Overload</th> 265 </tr> 266 <tr> 267 <td width="100"> </td> 268 <th> 269 <a href="../../../nw/ut/Color8/operator=.html"><CODE>operator=</CODE></a> 270 </th> 271 <td>Assignment operator for assigning u32 types.</td> 272 </tr> 273 <tr> 274 <td width="100"> </td> 275 <th> 276 <a href="../../../nw/ut/Color8/operator u32.html">operator u32</a> 277 </th> 278 <td>Operator for casting to a u32-type.</td> 279 </tr> 280 <tr> 281 <td width="100"> </td> 282 <th> 283 <a href="../../../nw/ut/Color8/operator+.html">operator +</a> 284 </th> 285 <td>Addition operator for same colors.</td> 286 </tr> 287 <tr> 288 <td width="100"> </td> 289 <th> 290 <a href="../../../nw/ut/Color8/operator-2d.html">operator -</a> 291 </th> 292 <td>Subtraction operator for same colors.</td> 293 </tr> 294 <tr> 295 <td width="100"> </td> 296 <th> 297 <a href="../../../nw/ut/Color8/operator-2a.html">operator *</a> 298 </th> 299 <td>Multiplication operator for same colors.</td> 300 </tr> 301 <tr> 302 <td width="100"> </td> 303 <th> 304 <a href="../../../nw/ut/Color8/operator-2f.html">operator /</a> 305 </th> 306 <td>Division operator for same colors.</td> 307 </tr> 308 <tr> 309 <td width="100"> </td> 310 <th> 311 <a href="../../../nw/ut/Color8/operator++.html">operator ++</a> 312 </th> 313 <td>Pre-position increment operator.</td> 314 </tr> 315 <tr> 316 <td width="100"> </td> 317 <th> 318 <a href="../../../nw/ut/Color8/operator-2d-2d.html">operator --</a> 319 </th> 320 <td>Pre-position decrement operator.</td> 321 </tr> 322 <tr> 323 <td width="100"> </td> 324 <th> 325 <a href="../../../nw/ut/Color8/operator-7c.html">operator |</a> 326 </th> 327 <td>Finds a bit sum as a u32 type.</td> 328 </tr> 329 <tr> 330 <td width="100"> </td> 331 <th> 332 <a href="../../../nw/ut/Color8/operator&.html">operator&</a> 333 </th> 334 <td>Finds a bit product as a u32 type.</td> 335 </tr> 336 <tr> 337 <td width="100"> </td> 338 <th> 339 <a href="../../../nw/ut/Color8/operator+=.html">operator +=</a> 340 </th> 341 <td>Addition assignment operator for same colors.</td> 342 </tr> 343 <tr> 344 <td width="100"> </td> 345 <th> 346 <a href="../../../nw/ut/Color8/operator-2d=.html">operator -=</a> 347 </th> 348 <td>Subtraction assignment operator for same colors.</td> 349 </tr> 350 <tr> 351 <td width="100"> </td> 352 <th> 353 <a href="../../../nw/ut/Color8/operator-2a=.html">operator *=</a> 354 </th> 355 <td>Multiplication assignment operator for same colors.</td> 356 </tr> 357 <tr> 358 <td width="100"> </td> 359 <th> 360 <a href="../../../nw/ut/Color8/operator-2f=.html">operator /=</a> 361 </th> 362 <td>Division assignment operator for same colors.</td> 363 </tr> 364 <tr> 365 <th class="category" colspan="3">Set/Get</th> 366 </tr> 367 <tr> 368 <td width="100"> </td> 369 <th> 370 <a href="../../../nw/ut/Color8/Set.html"><CODE>Set</CODE></a> 371 </th> 372 <td>Sets an RGBA value.</td> 373 </tr> 374 <tr> 375 <td width="100"> </td> 376 <th> 377 <a href="../../../nw/ut/Color8/ToU32.html">ToU32</a> 378 </th> 379 <td>Gets a color value as a u32 type.</td> 380 </tr> 381 <tr> 382 <td width="100"> </td> 383 <th> 384 <a href="../../../nw/ut/Color8/SetU32.html">SetU32</a> 385 </th> 386 <td>Sets a value as a u32 type.</td> 387 </tr> </table> 388 </div> 389 </a> 390 <hr><p>CONFIDENTIAL</p></body> 391</html>