File: classWt_1_1WColor.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (444 lines) | stat: -rw-r--r-- 23,216 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WColor Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WColor.html">WColor</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WColor Class Reference<br>
<small>
[<a class="el" href="group__style.html">Style classes</a>,&nbsp;<a class="el" href="group__painting.html">Painting system</a>]</small>
</h1><!-- doxytag: class="Wt::WColor" -->A class that specifies a color.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WColor&gt;</code>
<p>

<p>
<a href="classWt_1_1WColor-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#0aca175990842e4be3d944236e27cda3">WColor</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a default color.  <a href="#0aca175990842e4be3d944236e27cda3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#5e0102afbdf3ece70a200c1379ad3522">WColor</a> (int red, int green, int blue, int alpha=255)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a color with given red/green/blue/alpha components.  <a href="#5e0102afbdf3ece70a200c1379ad3522"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#00336e4511fb1fd68f3c66d58c30a4c1">WColor</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a color from a CSS name.  <a href="#00336e4511fb1fd68f3c66d58c30a4c1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#12eeb92c9177d1033e2dbd72e799ddcc">WColor</a> (<a class="el" href="group__style.html#g9686ea88ce4db2c0a12ea84452f60133">GlobalColor</a> name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a predefined color.  <a href="#12eeb92c9177d1033e2dbd72e799ddcc"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#b3e459365133f983d702a310dd600772">setRgb</a> (int red, int green, int blue, int alpha=255)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the red/green/blue/alpha components.  <a href="#b3e459365133f983d702a310dd600772"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#ea520f8d33c730809176bd555463e33a">setName</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the CSS name.  <a href="#ea520f8d33c730809176bd555463e33a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#1aa64740fc2dcfd7b30dfddfe2de8000">isDefault</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns if the color is the default color.  <a href="#1aa64740fc2dcfd7b30dfddfe2de8000"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#1f176a8557b9ebe2a9260b49acae3c3e">red</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the red component.  <a href="#1f176a8557b9ebe2a9260b49acae3c3e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#c4fa50432b68fd0f1134e80cda0754c5">green</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the green component.  <a href="#c4fa50432b68fd0f1134e80cda0754c5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#1126ef11c5211e2b0ec29020ea930f36">blue</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the blue component.  <a href="#1126ef11c5211e2b0ec29020ea930f36"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#7fe483df7025fbb2bcb13764bffd9fd1">alpha</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the alpha component.  <a href="#7fe483df7025fbb2bcb13764bffd9fd1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#4812291da745a35b8e505848c27bedcd">name</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the CSS name.  <a href="#4812291da745a35b8e505848c27bedcd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#d26120c40c96c29c58a22cae5a92d0a5">operator==</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &amp;other) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#d26120c40c96c29c58a22cae5a92d0a5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html#9e457a4ece07294a1eb16fc6dbc22d95">operator!=</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &amp;other) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#9e457a4ece07294a1eb16fc6dbc22d95"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A class that specifies a color. 
<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>
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. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="0aca175990842e4be3d944236e27cda3"></a><!-- doxytag: member="Wt::WColor::WColor" ref="0aca175990842e4be3d944236e27cda3" 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>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a default color. 
<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. 
</div>
</div><p>
<a class="anchor" name="5e0102afbdf3ece70a200c1379ad3522"></a><!-- doxytag: member="Wt::WColor::WColor" ref="5e0102afbdf3ece70a200c1379ad3522" 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&nbsp;</td>
          <td class="paramname"> <em>red</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>green</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>blue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>alpha</em> = <code>255</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <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>
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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WColor.html#b3e459365133f983d702a310dd600772" title="Sets the red/green/blue/alpha components.">setRgb(int, int, int, int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="00336e4511fb1fd68f3c66d58c30a4c1"></a><!-- doxytag: member="Wt::WColor::WColor" ref="00336e4511fb1fd68f3c66d58c30a4c1" 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;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a color from a CSS name. 
<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>
In either case, the result of the methods <a class="el" href="classWt_1_1WColor.html#1f176a8557b9ebe2a9260b49acae3c3e" title="Returns the red component.">red()</a>, <a class="el" href="classWt_1_1WColor.html#c4fa50432b68fd0f1134e80cda0754c5" title="Returns the green component.">green()</a> and <a class="el" href="classWt_1_1WColor.html#1126ef11c5211e2b0ec29020ea930f36" title="Returns the blue component.">blue()</a> is undefined.<p>
See also <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color">http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color</a> 
</div>
</div><p>
<a class="anchor" name="12eeb92c9177d1033e2dbd72e799ddcc"></a><!-- doxytag: member="Wt::WColor::WColor" ref="12eeb92c9177d1033e2dbd72e799ddcc" 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#g9686ea88ce4db2c0a12ea84452f60133">Wt::GlobalColor</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a predefined color. 
<p>
Constructs one of the 16 predefined Wt colors constants. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="b3e459365133f983d702a310dd600772"></a><!-- doxytag: member="Wt::WColor::setRgb" ref="b3e459365133f983d702a310dd600772" 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&nbsp;</td>
          <td class="paramname"> <em>red</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>green</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>blue</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>alpha</em> = <code>255</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the red/green/blue/alpha components. 
<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. 
</div>
</div><p>
<a class="anchor" name="ea520f8d33c730809176bd555463e33a"></a><!-- doxytag: member="Wt::WColor::setName" ref="ea520f8d33c730809176bd555463e33a" 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;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the CSS name. 
<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>
In either case, the result of the methods <a class="el" href="classWt_1_1WColor.html#1f176a8557b9ebe2a9260b49acae3c3e" title="Returns the red component.">red()</a>, <a class="el" href="classWt_1_1WColor.html#c4fa50432b68fd0f1134e80cda0754c5" title="Returns the green component.">green()</a> and <a class="el" href="classWt_1_1WColor.html#1126ef11c5211e2b0ec29020ea930f36" title="Returns the blue component.">blue()</a> is undefined.<p>
See also <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color">http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color</a> 
</div>
</div><p>
<a class="anchor" name="1aa64740fc2dcfd7b30dfddfe2de8000"></a><!-- doxytag: member="Wt::WColor::isDefault" ref="1aa64740fc2dcfd7b30dfddfe2de8000" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns if the color is the default color. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WColor.html#0aca175990842e4be3d944236e27cda3" title="Creates a default color.">WColor()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="1f176a8557b9ebe2a9260b49acae3c3e"></a><!-- doxytag: member="Wt::WColor::red" ref="1f176a8557b9ebe2a9260b49acae3c3e" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the red component. 
<p>
Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#b3e459365133f983d702a310dd600772" 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 class that specifies a color.">WColor</a>(int, int, int, int). 
</div>
</div><p>
<a class="anchor" name="c4fa50432b68fd0f1134e80cda0754c5"></a><!-- doxytag: member="Wt::WColor::green" ref="c4fa50432b68fd0f1134e80cda0754c5" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the green component. 
<p>
Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#b3e459365133f983d702a310dd600772" 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 class that specifies a color.">WColor</a>(int, int, int, int). 
</div>
</div><p>
<a class="anchor" name="1126ef11c5211e2b0ec29020ea930f36"></a><!-- doxytag: member="Wt::WColor::blue" ref="1126ef11c5211e2b0ec29020ea930f36" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the blue component. 
<p>
Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#b3e459365133f983d702a310dd600772" 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 class that specifies a color.">WColor</a>(int, int, int, int). 
</div>
</div><p>
<a class="anchor" name="7fe483df7025fbb2bcb13764bffd9fd1"></a><!-- doxytag: member="Wt::WColor::alpha" ref="7fe483df7025fbb2bcb13764bffd9fd1" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the alpha component. 
<p>
Only available when the color was specified in terms of the RGB components using <a class="el" href="classWt_1_1WColor.html#b3e459365133f983d702a310dd600772" 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 class that specifies a color.">WColor</a>(int, int, int, int). 
</div>
</div><p>
<a class="anchor" name="4812291da745a35b8e505848c27bedcd"></a><!-- doxytag: member="Wt::WColor::name" ref="4812291da745a35b8e505848c27bedcd" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the CSS name. 
<p>
Only available when it was set with <a class="el" href="classWt_1_1WColor.html#ea520f8d33c730809176bd555463e33a" title="Sets the CSS name.">setName(const WString&amp;)</a> or <a class="el" href="classWt_1_1WColor.html#00336e4511fb1fd68f3c66d58c30a4c1" title="Creates a color from a CSS name.">WColor(const WString&amp; name)</a>. 
</div>
</div><p>
<a class="anchor" name="d26120c40c96c29c58a22cae5a92d0a5"></a><!-- doxytag: member="Wt::WColor::operator==" ref="d26120c40c96c29c58a22cae5a92d0a5" 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;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<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. 
</div>
</div><p>
<a class="anchor" name="9e457a4ece07294a1eb16fc6dbc22d95"></a><!-- doxytag: member="Wt::WColor::operator!=" ref="9e457a4ece07294a1eb16fc6dbc22d95" 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;&nbsp;</td>
          <td class="paramname"> <em>other</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<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. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:06 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>