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
|
<!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::WBrush 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 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>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WBrush.html">WBrush</a>
</div>
</div>
<div class="contents">
<h1>Wt::WBrush Class Reference<br>
<small>
[<a class="el" href="group__painting.html">Painting system</a>]</small>
</h1><!-- doxytag: class="Wt::WBrush" -->Class that defines the style for filling areas.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WBrush></code>
<p>
<p>
<a href="classWt_1_1WBrush-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#b650511b8300044e2c62b209d8b5ada2">WBrush</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a brush. <a href="#b650511b8300044e2c62b209d8b5ada2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#e7725eeec8605983235ba8bb6b05695b">WBrush</a> (<a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> style)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a black brush with given style. <a href="#e7725eeec8605983235ba8bb6b05695b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#1cd32bceb74be7792cf1b89d5df862a6">WBrush</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &color)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a solid brush of a given color. <a href="#1cd32bceb74be7792cf1b89d5df862a6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#c8529901dfbd7804fa10f8ee91c3bf77">WBrush</a> (<a class="el" href="group__style.html#g9686ea88ce4db2c0a12ea84452f60133">GlobalColor</a> color)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a solid brush with a particular standard color. <a href="#c8529901dfbd7804fa10f8ee91c3bf77"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#77eaae76488f6febfaba2a5b0b94e7bb">operator==</a> (const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &other) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Comparison operator. <a href="#77eaae76488f6febfaba2a5b0b94e7bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#c3a156efe8eb36d25680e391a9540b71">operator!=</a> (const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &other) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Comparison operator. <a href="#c3a156efe8eb36d25680e391a9540b71"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#b52dc087359100109e5db040af72ea9c">setStyle</a> (<a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> style)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the brush style. <a href="#b52dc087359100109e5db040af72ea9c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#01a01f9b48e940122c6485ddd078fce2">style</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the fill style. <a href="#01a01f9b48e940122c6485ddd078fce2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#9b6a446a81d6c3089a2cf37010fc5743">setColor</a> (const <a class="el" href="classWt_1_1WColor.html">WColor</a> &color)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the brush color. <a href="#9b6a446a81d6c3089a2cf37010fc5743"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WColor.html">WColor</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html#af854f81f54f87eab71c0d550e4f6156">color</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the brush color. <a href="#af854f81f54f87eab71c0d550e4f6156"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Related Functions</h2></td></tr>
<tr><td colspan="2">(Note that these are not member functions.) <br><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> { <a class="el" href="group__painting.html#ggffe43936b1bbb1ca2b308572fcdeb157a6f513232fadbbcaf8a576b7aaefc67a">NoBrush</a> = 0,
<a class="el" href="group__painting.html#ggffe43936b1bbb1ca2b308572fcdeb157574469ed16523a26c683e83c8fee3ed6">SolidPattern</a> = 1
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates a fill style. <a href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">More...</a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Class that defines the style for filling areas.
<p>
A brush defines the properties of how areas (the interior of shapes) are filled. A brush is defined using a color and a fill type (currently only solid fills are supported).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#d63f01349e9163992d440e9aa85f916b" title="Sets the fill style.">WPainter::setBrush()</a>, <a class="el" href="classWt_1_1WPen.html" title="Class that defines the style for pen strokes.">WPen</a> </dd></dl>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="b650511b8300044e2c62b209d8b5ada2"></a><!-- doxytag: member="Wt::WBrush::WBrush" ref="b650511b8300044e2c62b209d8b5ada2" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WBrush::WBrush </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a brush.
<p>
Creates a brush with a <a class="el" href="group__painting.html#ggffe43936b1bbb1ca2b308572fcdeb157a6f513232fadbbcaf8a576b7aaefc67a">NoBrush</a> fill style.
</div>
</div><p>
<a class="anchor" name="e7725eeec8605983235ba8bb6b05695b"></a><!-- doxytag: member="Wt::WBrush::WBrush" ref="e7725eeec8605983235ba8bb6b05695b" args="(WBrushStyle style)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WBrush::WBrush </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> </td>
<td class="paramname"> <em>style</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a black brush with given style.
<p>
Creates a black brush with the indicated <code>style</code>.
</div>
</div><p>
<a class="anchor" name="1cd32bceb74be7792cf1b89d5df862a6"></a><!-- doxytag: member="Wt::WBrush::WBrush" ref="1cd32bceb74be7792cf1b89d5df862a6" args="(const WColor &color)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WBrush::WBrush </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WColor.html">WColor</a> & </td>
<td class="paramname"> <em>color</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a solid brush of a given color.
<p>
Creates a solid brush with the indicated <code>color</code>.
</div>
</div><p>
<a class="anchor" name="c8529901dfbd7804fa10f8ee91c3bf77"></a><!-- doxytag: member="Wt::WBrush::WBrush" ref="c8529901dfbd7804fa10f8ee91c3bf77" args="(GlobalColor color)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WBrush::WBrush </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__style.html#g9686ea88ce4db2c0a12ea84452f60133">GlobalColor</a> </td>
<td class="paramname"> <em>color</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a solid brush with a particular standard color.
<p>
Creates a solid brush with the indicated <code>color</code>.
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="77eaae76488f6febfaba2a5b0b94e7bb"></a><!-- doxytag: member="Wt::WBrush::operator==" ref="77eaae76488f6febfaba2a5b0b94e7bb" args="(const WBrush &other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WBrush::operator== </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> & </td>
<td class="paramname"> <em>other</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Comparison operator.
<p>
Returns <code>true</code> if the brushes are exactly the same.
</div>
</div><p>
<a class="anchor" name="c3a156efe8eb36d25680e391a9540b71"></a><!-- doxytag: member="Wt::WBrush::operator!=" ref="c3a156efe8eb36d25680e391a9540b71" args="(const WBrush &other) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WBrush::operator!= </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> & </td>
<td class="paramname"> <em>other</em> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Comparison operator.
<p>
Returns <code>true</code> if the brushes are different.
</div>
</div><p>
<a class="anchor" name="b52dc087359100109e5db040af72ea9c"></a><!-- doxytag: member="Wt::WBrush::setStyle" ref="b52dc087359100109e5db040af72ea9c" args="(WBrushStyle style)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WBrush::setStyle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> </td>
<td class="paramname"> <em>style</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the brush style.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBrush.html#01a01f9b48e940122c6485ddd078fce2" title="Returns the fill style.">style()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="01a01f9b48e940122c6485ddd078fce2"></a><!-- doxytag: member="Wt::WBrush::style" ref="01a01f9b48e940122c6485ddd078fce2" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a> Wt::WBrush::style </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the fill style.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBrush.html#b52dc087359100109e5db040af72ea9c" title="Sets the brush style.">setStyle(WBrushStyle)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9b6a446a81d6c3089a2cf37010fc5743"></a><!-- doxytag: member="Wt::WBrush::setColor" ref="9b6a446a81d6c3089a2cf37010fc5743" args="(const WColor &color)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WBrush::setColor </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WColor.html">WColor</a> & </td>
<td class="paramname"> <em>color</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the brush color.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBrush.html#af854f81f54f87eab71c0d550e4f6156" title="Returns the brush color.">color()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="af854f81f54f87eab71c0d550e4f6156"></a><!-- doxytag: member="Wt::WBrush::color" ref="af854f81f54f87eab71c0d550e4f6156" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classWt_1_1WColor.html">WColor</a>& Wt::WBrush::color </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the brush color.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WBrush.html#af854f81f54f87eab71c0d550e4f6156" title="Returns the brush color.">color()</a> </dd></dl>
</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 <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>
|