Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 1639

wt-doc-3.2.3-1.fc18.noarch.rpm

<!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
   &#160;<span id="projectnumber">3.2.3</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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;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> &#124; <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 &lt;Wt/WColor&gt;</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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a0aca175990842e4be3d944236e27cda3">WColor</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a default color.  <a href="#a0aca175990842e4be3d944236e27cda3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</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">&#160;</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">&#160;</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> &amp;name)</td></tr>
<tr><td class="mdescLeft">&#160;</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">&#160;</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">&#160;</td><td class="mdescRight">Creates a predefined color.  <a href="#a12eeb92c9177d1033e2dbd72e799ddcc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</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">&#160;</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&#160;</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> &amp;name)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the CSS name.  <a href="#aea520f8d33c730809176bd555463e33a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a1aa64740fc2dcfd7b30dfddfe2de8000">isDefault</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a1f176a8557b9ebe2a9260b49acae3c3e">red</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the red component.  <a href="#a1f176a8557b9ebe2a9260b49acae3c3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#ac4fa50432b68fd0f1134e80cda0754c5">green</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the green component.  <a href="#ac4fa50432b68fd0f1134e80cda0754c5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a1126ef11c5211e2b0ec29020ea930f36">blue</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the blue component.  <a href="#a1126ef11c5211e2b0ec29020ea930f36"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a7fe483df7025fbb2bcb13764bffd9fd1">alpha</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</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> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#a4812291da745a35b8e505848c27bedcd">name</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the CSS name.  <a href="#a4812291da745a35b8e505848c27bedcd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</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> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Comparison operator.  <a href="#ad26120c40c96c29c58a22cae5a92d0a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</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> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</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 &amp; 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&#160;</td>
          <td class="paramname"><em>red</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>green</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>alpha</em> = <code>255</code>&#160;</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 &amp;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> &amp;&#160;</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>&#160;</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&amp; 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&amp; 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>&amp; 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&amp;)</a> or <a class="el" href="classWt_1_1WColor.html#a00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString&amp; name)</a>. </p>

</div>
</div>
<a class="anchor" id="a9e457a4ece07294a1eb16fc6dbc22d95"></a><!-- doxytag: member="Wt::WColor::operator!=" ref="a9e457a4ece07294a1eb16fc6dbc22d95" args="(const WColor &amp;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> &amp;&#160;</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 &amp;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> &amp;&#160;</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&amp; 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 &amp;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> &amp;&#160;</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&amp;)</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&#160;</td>
          <td class="paramname"><em>red</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>green</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>alpha</em> = <code>255</code>&#160;</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">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</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 Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<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>