1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WColor Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Wt
 <span id="projectnumber">3.2.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceWt.html">Wt</a> </li>
<li class="navelem"><a class="el" href="classWt_1_1WColor.html">WColor</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> </div>
<div class="headertitle">
<div class="title">Wt::WColor Class Reference<div class="ingroups"><a class="el" href="group__style.html">Style classes</a> | <a class="el" href="group__painting.html">Painting system</a></div></div> </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WColor" -->
<p>A value class that defines a color.
<a href="classWt_1_1WColor.html#details">More...</a></p>
<p><code>#include <Wt/WColor></code></p>
<p><a href="classWt_1_1WColor-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a0aca175990842e4be3d944236e27cda3">WColor</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a default color. <a href="#a0aca175990842e4be3d944236e27cda3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a5e0102afbdf3ece70a200c1379ad3522">WColor</a> (int red, int green, int blue, int alpha=255)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a color with given red/green/blue/alpha components. <a href="#a5e0102afbdf3ece70a200c1379ad3522"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1">WColor</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a color from a CSS name. <a href="#a00336e4511fb1fd68f3c66d58c30a4c1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a12eeb92c9177d1033e2dbd72e799ddcc">WColor</a> (<a class="el" href="group__style.html#ga9686ea88ce4db2c0a12ea84452f60133">GlobalColor</a> name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a predefined color. <a href="#a12eeb92c9177d1033e2dbd72e799ddcc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#ab3e459365133f983d702a310dd600772">setRgb</a> (int red, int green, int blue, int alpha=255)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the red/green/blue/alpha components. <a href="#ab3e459365133f983d702a310dd600772"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#aea520f8d33c730809176bd555463e33a">setName</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the CSS name. <a href="#aea520f8d33c730809176bd555463e33a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a1aa64740fc2dcfd7b30dfddfe2de8000">isDefault</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns if the color is the default color. <a href="#a1aa64740fc2dcfd7b30dfddfe2de8000"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a1f176a8557b9ebe2a9260b49acae3c3e">red</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the red component. <a href="#a1f176a8557b9ebe2a9260b49acae3c3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#ac4fa50432b68fd0f1134e80cda0754c5">green</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the green component. <a href="#ac4fa50432b68fd0f1134e80cda0754c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a1126ef11c5211e2b0ec29020ea930f36">blue</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the blue component. <a href="#a1126ef11c5211e2b0ec29020ea930f36"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a7fe483df7025fbb2bcb13764bffd9fd1">alpha</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the alpha component. <a href="#a7fe483df7025fbb2bcb13764bffd9fd1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a4812291da745a35b8e505848c27bedcd">name</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the CSS name. <a href="#a4812291da745a35b8e505848c27bedcd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#ad26120c40c96c29c58a22cae5a92d0a5">operator==</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &other) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Comparison operator. <a href="#ad26120c40c96c29c58a22cae5a92d0a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a9e457a4ece07294a1eb16fc6dbc22d95">operator!=</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &other) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Comparison operator. <a href="#a9e457a4ece07294a1eb16fc6dbc22d95"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A value class that defines a color. </p>
<p>A color corresponds to a CSS color. You can specify a color either using its red/green/blue components, or from a valid CSS name.</p>
<p>The color supports an alpha channel, which determines the degree of transparency. An alpha value of 0 is completely transparent (and thus invisible), while a value of 255 is completely opaque. </p>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a0aca175990842e4be3d944236e27cda3"></a><!-- doxytag: member="Wt::WColor::WColor" ref="a0aca175990842e4be3d944236e27cda3" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WColor::WColor </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a default color. </p>
<p>The default color is depending on the context, another color (for example from a hierarchical parent in a widget tree), or a completely transparent color. </p>
</div>
</div>
<a class="anchor" id="a5e0102afbdf3ece70a200c1379ad3522"></a><!-- doxytag: member="Wt::WColor::WColor" ref="a5e0102afbdf3ece70a200c1379ad3522" args="(int red, int green, int blue, int alpha=255)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WColor::WColor </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>red</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>green</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>blue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>alpha</em> = <code>255</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a color with given red/green/blue/alpha components. </p>
<p>All four components must be specified with a value in the range (0 - 255). The alpha channel determines the degree of transparency. An alpha value of 0 is completely transparent (and thus invisible), while a value of 255 is completely opaque.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WColor.html#ab3e459365133f983d702a310dd600772" title="Sets the red/green/blue/alpha components.">setRgb(int, int, int, int)</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a00336e4511fb1fd68f3c66d58c30a4c1"></a><!-- doxytag: member="Wt::WColor::WColor" ref="a00336e4511fb1fd68f3c66d58c30a4c1" args="(const WString &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WColor::WColor </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a color from a CSS name. </p>
<p>The <code>name</code> may be any valid CSS color name, including names colors such as "aqua", or colors defined as RGB components.</p>
<p>Only if the color is defined in terms of RGB components (using the rgba() format), will the CSS color be parsed into red, blue and green values. to an appropriate value. Otherwise, these values are not available, and the color can only be used in media that support CSS colors.</p>
<p>See also <a href="http://www.w3.org/TR/css3-color">http://www.w3.org/TR/css3-color</a> </p>
</div>
</div>
<a class="anchor" id="a12eeb92c9177d1033e2dbd72e799ddcc"></a><!-- doxytag: member="Wt::WColor::WColor" ref="a12eeb92c9177d1033e2dbd72e799ddcc" args="(GlobalColor name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WColor::WColor </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__style.html#ga9686ea88ce4db2c0a12ea84452f60133">Wt::GlobalColor</a> </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a predefined color. </p>
<p>Constructs one of the 16 predefined Wt colors constants. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a7fe483df7025fbb2bcb13764bffd9fd1"></a><!-- doxytag: member="Wt::WColor::alpha" ref="a7fe483df7025fbb2bcb13764bffd9fd1" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WColor::alpha </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the alpha component. </p>
<p>Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#ab3e459365133f983d702a310dd600772" title="Sets the red/green/blue/alpha components.">setRgb(int, int, int, int)</a> or <a class="el" href="classWt_1_1WColor.html" title="A value class that defines a color.">WColor</a>(int, int, int, int). </p>
</div>
</div>
<a class="anchor" id="a1126ef11c5211e2b0ec29020ea930f36"></a><!-- doxytag: member="Wt::WColor::blue" ref="a1126ef11c5211e2b0ec29020ea930f36" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WColor::blue </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the blue component. </p>
<p>Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#ab3e459365133f983d702a310dd600772" title="Sets the red/green/blue/alpha components.">setRgb(int, int, int, int)</a>, <a class="el" href="classWt_1_1WColor.html" title="A value class that defines a color.">WColor</a>(int, int, int, int) or <a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString& name)</a> when the name was parsable.</p>
<p>If not available this method return 0. </p>
</div>
</div>
<a class="anchor" id="ac4fa50432b68fd0f1134e80cda0754c5"></a><!-- doxytag: member="Wt::WColor::green" ref="ac4fa50432b68fd0f1134e80cda0754c5" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WColor::green </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the green component. </p>
<p>Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#ab3e459365133f983d702a310dd600772" title="Sets the red/green/blue/alpha components.">setRgb(int, int, int, int)</a>, <a class="el" href="classWt_1_1WColor.html" title="A value class that defines a color.">WColor</a>(int, int, int, int) or <a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString& name)</a> when the name was parsable.</p>
<p>If not available this method return 0. </p>
</div>
</div>
<a class="anchor" id="a1aa64740fc2dcfd7b30dfddfe2de8000"></a><!-- doxytag: member="Wt::WColor::isDefault" ref="a1aa64740fc2dcfd7b30dfddfe2de8000" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WColor::isDefault </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns if the color is the default color. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WColor.html#a0aca175990842e4be3d944236e27cda3" title="Creates a default color.">WColor()</a> </dd></dl>
</div>
</div>
<a class="anchor" id="a4812291da745a35b8e505848c27bedcd"></a><!-- doxytag: member="Wt::WColor::name" ref="a4812291da745a35b8e505848c27bedcd" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>& Wt::WColor::name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the CSS name. </p>
<p>Only available when it was set with <a class="el" href="classWt_1_1WColor.html#aea520f8d33c730809176bd555463e33a" title="Sets the CSS name.">setName(const WString&)</a> or <a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString& name)</a>. </p>
</div>
</div>
<a class="anchor" id="a9e457a4ece07294a1eb16fc6dbc22d95"></a><!-- doxytag: member="Wt::WColor::operator!=" ref="a9e457a4ece07294a1eb16fc6dbc22d95" args="(const WColor &other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WColor::operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WColor.html">WColor</a> & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Comparison operator. </p>
<p>Returns false if the two colors were not defined in exactly the same way. It may return return although they actually represent the same color. </p>
</div>
</div>
<a class="anchor" id="ad26120c40c96c29c58a22cae5a92d0a5"></a><!-- doxytag: member="Wt::WColor::operator==" ref="ad26120c40c96c29c58a22cae5a92d0a5" args="(const WColor &other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WColor::operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WColor.html">WColor</a> & </td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Comparison operator. </p>
<p>Returns <code>true</code> if the two colors were defined in exactly the same way. It may return <code>false</code> although they actually represent the same color. </p>
</div>
</div>
<a class="anchor" id="a1f176a8557b9ebe2a9260b49acae3c3e"></a><!-- doxytag: member="Wt::WColor::red" ref="a1f176a8557b9ebe2a9260b49acae3c3e" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WColor::red </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the red component. </p>
<p>Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#ab3e459365133f983d702a310dd600772" title="Sets the red/green/blue/alpha components.">setRgb(int, int, int, int)</a>, <a class="el" href="classWt_1_1WColor.html" title="A value class that defines a color.">WColor</a>(int, int, int, int) or <a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString& name)</a> when the name was parsable .</p>
<p>If not available this method return 0. </p>
</div>
</div>
<a class="anchor" id="aea520f8d33c730809176bd555463e33a"></a><!-- doxytag: member="Wt::WColor::setName" ref="aea520f8d33c730809176bd555463e33a" args="(const WString &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WColor::setName </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"><em>name</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the CSS name. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString&)</a> </dd></dl>
</div>
</div>
<a class="anchor" id="ab3e459365133f983d702a310dd600772"></a><!-- doxytag: member="Wt::WColor::setRgb" ref="ab3e459365133f983d702a310dd600772" args="(int red, int green, int blue, int alpha=255)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WColor::setRgb </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"><em>red</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>green</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>blue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>alpha</em> = <code>255</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Sets the red/green/blue/alpha components. </p>
<p>All four components must be specified with a value in the range (0 - 255). The alpha channel determines the degree of transparency. An alpha value of 0 is completely transparent (and thus invisible), while a value of 255 is completely opaque. </p>
</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Fri Mar 30 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by <a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>
|