Sophie

Sophie

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

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::WPainter 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_1WPainter.html">WPainter</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WPainter Class Reference<div class="ingroups"><a class="el" href="group__painting.html">Painting system</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WPainter" -->
<p>Vector graphics painting class.  
 <a href="classWt_1_1WPainter.html#details">More...</a></p>

<p><code>#include &lt;Wt/WPainter&gt;</code></p>

<p><a href="classWt_1_1WPainter-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">An image that can be rendered on a <a class="el" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">WPainter</a>.  <a href="classWt_1_1WPainter_1_1Image.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ff">RenderHint</a> { <a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ffaadc2e7f25121334e55c3f569173ec5bb">Antialiasing</a> =  1, 
<a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ffab9625abcca35b8cb964fdb52a4dbf3d3">LowQualityShadows</a> =  2
 }</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration for render hints.  <a href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ff">More...</a><br/></td></tr>
<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_1WPainter.html#a420b1e54536d4815534f31208a825b54">WPainter</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor.  <a href="#a420b1e54536d4815534f31208a825b54"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa9e93aac4be32b5c0943360d9cf8c1cc"></a><!-- doxytag: member="Wt::WPainter::WPainter" ref="aa9e93aac4be32b5c0943360d9cf8c1cc" args="(WPaintDevice *device)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#aa9e93aac4be32b5c0943360d9cf8c1cc">WPainter</a> (<a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a> *device)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a painter on a given paint device. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a611557a8722bc49df70a1a2dd79628c7"></a><!-- doxytag: member="Wt::WPainter::~WPainter" ref="a611557a8722bc49df70a1a2dd79628c7" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a611557a8722bc49df70a1a2dd79628c7">~WPainter</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <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_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44">begin</a> (<a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a> *device)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Begins painting on a paint device.  <a href="#a6b81663b5599f0736ae5099ac7325d44"></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_1WPainter.html#a7a748d6ee49034a0996f9404eac9c2d1">isActive</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether this painter is active on a paint device.  <a href="#a7a748d6ee49034a0996f9404eac9c2d1"></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_1WPainter.html#a50beb0c8cb77c12e2dee807e4fe4bcb4">end</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Ends painting.  <a href="#a50beb0c8cb77c12e2dee807e4fe4bcb4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a9d2e545f5506fd743a286618351c9b51">device</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the device on which this painter is active (or 0 if not active).  <a href="#a9d2e545f5506fd743a286618351c9b51"></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_1WPainter.html#af859825a00ff428e773c2abeb328f078">setRenderHint</a> (<a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ff">RenderHint</a> hint, bool on=true)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a render hint.  <a href="#af859825a00ff428e773c2abeb328f078"></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_1WPainter.html#a6be5dd738e97d35b91aaaea1d086b4b4">renderHints</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current render hints.  <a href="#a6be5dd738e97d35b91aaaea1d086b4b4"></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_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e">drawArc</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle, int startAngle, int spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an arc.  <a href="#aa79220ed9456f67a393009e5c5eea27e"></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_1WPainter.html#a96c03e411d46cd720f454504f53491bd">drawArc</a> (double x, double y, double width, double height, int startAngle, int spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an arc.  <a href="#a96c03e411d46cd720f454504f53491bd"></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_1WPainter.html#aa34b0972745692d55bc03ff1c57f1f4c">drawChord</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle, int startAngle, int spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a chord.  <a href="#aa34b0972745692d55bc03ff1c57f1f4c"></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_1WPainter.html#ac8735155d03ab0332a66880e251b0fc2">drawChord</a> (double x, double y, double width, double height, int startAngle, int spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a chord.  <a href="#ac8735155d03ab0332a66880e251b0fc2"></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_1WPainter.html#a5a1969356a8edae0cdd3abfc141082a7">drawEllipse</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an ellipse.  <a href="#a5a1969356a8edae0cdd3abfc141082a7"></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_1WPainter.html#ac46f725e54280bd6ace0e941eced790c">drawEllipse</a> (double x, double y, double width, double height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an ellipse.  <a href="#ac46f725e54280bd6ace0e941eced790c"></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_1WPainter.html#ae36e5ce0c6a324ec83ebbc397a513202">drawImage</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;point, const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;image)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image.  <a href="#ae36e5ce0c6a324ec83ebbc397a513202"></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_1WPainter.html#ad69c06dbcb10d8f12bce1c369ae34c31">drawImage</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;point, const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;image, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;sourceRect)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws part of an image.  <a href="#ad69c06dbcb10d8f12bce1c369ae34c31"></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_1WPainter.html#aaf6ea6a37b0fd8244d1b7afa3c24b55c">drawImage</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rect, const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;image)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an image inside a rectangle.  <a href="#aaf6ea6a37b0fd8244d1b7afa3c24b55c"></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_1WPainter.html#a58a14d4610582eed6c76e0bda6117e3d">drawImage</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rect, const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;image, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;sourceRect)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws part of an image inside a rectangle.  <a href="#a58a14d4610582eed6c76e0bda6117e3d"></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_1WPainter.html#a508b7828bbbf5805838a30a830c34f36">drawImage</a> (double x, double y, const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;image, double sx=0, double sy=0, double sw=-1, double sh=-1)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws part of an image.  <a href="#a508b7828bbbf5805838a30a830c34f36"></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_1WPainter.html#a259601487cb2ec23a2f6f3d64c0c5913">drawLine</a> (const <a class="el" href="classWt_1_1WLineF.html">WLineF</a> &amp;line)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line.  <a href="#a259601487cb2ec23a2f6f3d64c0c5913"></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_1WPainter.html#a1c9ad3f225f7ca93800431adfc5731f0">drawLine</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;p1, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;p2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line.  <a href="#a1c9ad3f225f7ca93800431adfc5731f0"></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_1WPainter.html#ab596b1cfa230d37e9c429adde84d5985">drawLine</a> (double x1, double y1, double x2, double y2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a line.  <a href="#ab596b1cfa230d37e9c429adde84d5985"></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_1WPainter.html#a3b25c4144914fe09ca3b3cb63979bd69">drawLines</a> (const <a class="el" href="classWt_1_1WLineF.html">WLineF</a> *lines, int lineCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an array of lines.  <a href="#a3b25c4144914fe09ca3b3cb63979bd69"></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_1WPainter.html#ae1ac3c9c64907e53817ca5a28ead70d2">drawLines</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *pointPairs, int lineCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an array of lines.  <a href="#ae1ac3c9c64907e53817ca5a28ead70d2"></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_1WPainter.html#aebfb0fc62a58789f7b21650485ef9985">drawLines</a> (const std::vector&lt; <a class="el" href="classWt_1_1WLineF.html">WLineF</a> &gt; &amp;lines)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an array of lines.  <a href="#aebfb0fc62a58789f7b21650485ef9985"></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_1WPainter.html#a762442b01f5603492e9673cb84081596">drawLines</a> (const std::vector&lt; <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &gt; &amp;pointPairs)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws an array of lines.  <a href="#a762442b01f5603492e9673cb84081596"></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_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50">drawPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a (complex) path.  <a href="#a2ef57868d6fbf99a901cbe1f29723b50"></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_1WPainter.html#a5c46ed008445a80feb258774a3af3b62">drawPie</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle, int startAngle, int spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a pie.  <a href="#a5c46ed008445a80feb258774a3af3b62"></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_1WPainter.html#a3d8bc8608db5dad5e8d499b0fed58b85">drawPie</a> (double x, double y, double width, double height, int startAngle, int spanAngle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a pie.  <a href="#a3d8bc8608db5dad5e8d499b0fed58b85"></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_1WPainter.html#aca2e989c3cd9bc635e6d13786cc73119">drawPoint</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;position)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a point.  <a href="#aca2e989c3cd9bc635e6d13786cc73119"></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_1WPainter.html#a9159b8ae72494b4973642143296daa96">drawPoint</a> (double x, double y)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a point.  <a href="#a9159b8ae72494b4973642143296daa96"></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_1WPainter.html#abe40c21da61567a23b04c81c9ea038b2">drawPoints</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *points, int pointCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a number of points.  <a href="#abe40c21da61567a23b04c81c9ea038b2"></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_1WPainter.html#a82600053c72a0f939eb37ab45f2c1f3e">drawPolygon</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *points, int pointCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a polygon.  <a href="#a82600053c72a0f939eb37ab45f2c1f3e"></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_1WPainter.html#abbc6b39bef49d5fc67e09953fbcd4faa">drawPolyline</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *points, int pointCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a polyline.  <a href="#abbc6b39bef49d5fc67e09953fbcd4faa"></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_1WPainter.html#ad1fcb68312327194b3dccc67adc3bd33">drawRect</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a rectangle.  <a href="#ad1fcb68312327194b3dccc67adc3bd33"></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_1WPainter.html#a368289c57968343089d82c26acc62ca6">drawRect</a> (double x, double y, double width, double height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a rectangle.  <a href="#a368289c57968343089d82c26acc62ca6"></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_1WPainter.html#a14fa5d0d5f3a05f8279bb0b4a06a8671">drawRects</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> *rectangles, int rectCount)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a number of rectangles.  <a href="#a14fa5d0d5f3a05f8279bb0b4a06a8671"></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_1WPainter.html#a36818dd1aea0c8f50dc0385dca39a6b8">drawRects</a> (const std::vector&lt; <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &gt; &amp;rectangles)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws a number of rectangles.  <a href="#a36818dd1aea0c8f50dc0385dca39a6b8"></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_1WPainter.html#a8cd1366f2cb09b464f0b2e7d073c96c1">drawText</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rect, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignmentFlags, <a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a> textFlag, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws text.  <a href="#a8cd1366f2cb09b464f0b2e7d073c96c1"></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_1WPainter.html#a8565a90a75207b318a2ff608e19df806">drawText</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; flags, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws text.  <a href="#a8565a90a75207b318a2ff608e19df806"></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_1WPainter.html#ae2a04838933687fd0791e1187b28fdca">drawText</a> (double x, double y, double width, double height, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; flags, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws text.  <a href="#ae2a04838933687fd0791e1187b28fdca"></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_1WPainter.html#aa6a327223e1b5b09db4dfb20bd00ce99">drawText</a> (double x, double y, double width, double height, WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt; alignmentFlags, <a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a> textFlag, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Draws text.  <a href="#aa6a327223e1b5b09db4dfb20bd00ce99"></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_1WPainter.html#a761f8f85d14fe171fcc91823bc4dab5c">fillPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path, const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;brush)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a (complex) path.  <a href="#a761f8f85d14fe171fcc91823bc4dab5c"></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_1WPainter.html#a4b9ce79b5abd8584fd2cf85876ab140f">fillRect</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle, const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;brush)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle.  <a href="#a4b9ce79b5abd8584fd2cf85876ab140f"></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_1WPainter.html#ac99ee3d64df9742e167c01d750c899be">fillRect</a> (double x, double y, double width, double height, const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;brush)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills a rectangle.  <a href="#ac99ee3d64df9742e167c01d750c899be"></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_1WPainter.html#a93cb3a37591c6dde4f006e8eada2d1f8">strokePath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path, const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;pen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Strokes a path.  <a href="#a93cb3a37591c6dde4f006e8eada2d1f8"></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_1WPainter.html#a9c727b82879ab055f3fcf4c9cdfc1f8d">setShadow</a> (const <a class="el" href="classWt_1_1WShadow.html">WShadow</a> &amp;shadow)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a shadow effect.  <a href="#a9c727b82879ab055f3fcf4c9cdfc1f8d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WShadow.html">WShadow</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#af34ea21a473d776dc659d25efa63a593">shadow</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current shadow effect.  <a href="#af34ea21a473d776dc659d25efa63a593"></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_1WPainter.html#ad63f01349e9163992d440e9aa85f916b">setBrush</a> (const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;brush)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the fill style.  <a href="#ad63f01349e9163992d440e9aa85f916b"></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_1WPainter.html#ad9cac6c8eaba94226f54343cde9676ea">setFont</a> (const <a class="el" href="classWt_1_1WFont.html">WFont</a> &amp;font)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the font.  <a href="#ad9cac6c8eaba94226f54343cde9676ea"></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_1WPainter.html#a159ebf24df790e409d4060f7bd4aa725">setPen</a> (const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;pen)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the pen.  <a href="#a159ebf24df790e409d4060f7bd4aa725"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#ade2b538d5028082f3aba87625634184c">brush</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current brush.  <a href="#ade2b538d5028082f3aba87625634184c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WFont.html">WFont</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#ab218488ea091c9ae543142bdca4da9bb">font</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current font.  <a href="#ab218488ea091c9ae543142bdca4da9bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a1b60e758e7eb1865369a061cf07bf54c">pen</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current pen.  <a href="#a1b60e758e7eb1865369a061cf07bf54c"></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_1WPainter.html#a4163898f999d4ecafec52c3f8890f380">setClipping</a> (bool enable)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables clipping.  <a href="#a4163898f999d4ecafec52c3f8890f380"></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_1WPainter.html#aa99949d6a71d44f1240db64c32b6d803">hasClipping</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns whether clipping is enabled.  <a href="#aa99949d6a71d44f1240db64c32b6d803"></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_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5">setClipPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;clipPath)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the clip path.  <a href="#a65be44d995c5f06f065f68d15c8889a5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a601eba54f63b581080531100f5b5db78">clipPath</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the clip path.  <a href="#a601eba54f63b581080531100f5b5db78"></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_1WPainter.html#ac0cc4dedd2cf8801e12d7550bce2a2c1">resetTransform</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Resets the current transformation.  <a href="#ac0cc4dedd2cf8801e12d7550bce2a2c1"></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_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e">rotate</a> (double angle)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Rotates the logical coordinate system.  <a href="#ab6d68d362e43f8e8df7e4400e2324d8e"></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_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938">scale</a> (double sx, double sy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales the logical coordinate system.  <a href="#a0167a7c8c8d72ee0cca6f735b65a7938"></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_1WPainter.html#aaf5755eca15cb6e73fc24edf3bbd5758">translate</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;offset)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Translates the origin of the logical coordinate system.  <a href="#aaf5755eca15cb6e73fc24edf3bbd5758"></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_1WPainter.html#aef98cc3b4fa2da57efc9721a8bd2a6e5">translate</a> (double dx, double dy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Translates the origin of the logical coordinate system.  <a href="#aef98cc3b4fa2da57efc9721a8bd2a6e5"></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_1WPainter.html#ac0aa03db16f695b9bec3ef38588a5f3e">setWorldTransform</a> (const <a class="el" href="classWt_1_1WTransform.html">WTransform</a> &amp;matrix, bool combine=false)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a transformation for the logical coordinate system.  <a href="#ac0aa03db16f695b9bec3ef38588a5f3e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classWt_1_1WTransform.html">WTransform</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a6fb5733c524d07b679c4af6526d0c032">worldTransform</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current world transformation matrix.  <a href="#a6fb5733c524d07b679c4af6526d0c032"></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_1WPainter.html#a0262e162bb4be43f800c6c7b784c8d7a">save</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the current state.  <a href="#a0262e162bb4be43f800c6c7b784c8d7a"></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_1WPainter.html#a3fd8699e88d695cfd10043d18a666991">restore</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the last save state.  <a href="#a3fd8699e88d695cfd10043d18a666991"></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_1WPainter.html#a70dcfbed2b7bdeb39ddbc7f213b5a9ce">setViewPort</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;viewPort)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the viewport.  <a href="#a70dcfbed2b7bdeb39ddbc7f213b5a9ce"></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_1WPainter.html#afd9272b6a583b273a64105e88fb65e42">setViewPort</a> (double x, double y, double width, double height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the viewport.  <a href="#afd9272b6a583b273a64105e88fb65e42"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WRectF.html">WRectF</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a7838d09f494223b51a5e22b73a71740b">viewPort</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the viewport.  <a href="#a7838d09f494223b51a5e22b73a71740b"></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_1WPainter.html#af223eea7db8164e404f6725705569fa6">setWindow</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;window)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the window.  <a href="#af223eea7db8164e404f6725705569fa6"></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_1WPainter.html#a7d56a3fb66457c02584aa4bed8ce6023">setWindow</a> (double x, double y, double width, double height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the window.  <a href="#a7d56a3fb66457c02584aa4bed8ce6023"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WRectF.html">WRectF</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a0bcac25d9328887ed15669b4a4ae52de">window</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the current window.  <a href="#a0bcac25d9328887ed15669b4a4ae52de"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WTransform.html">WTransform</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html#a8d8e9616413abf58f949cd47c3bf1381">combinedTransform</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the combined transformation matrix.  <a href="#a8d8e9616413abf58f949cd47c3bf1381"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Vector graphics painting class. </p>
<p>The painter class provides a vector graphics interface for painting. It needs to be used in conjunction with a <a class="el" href="classWt_1_1WPaintDevice.html" title="The abstract base class for a paint device.">WPaintDevice</a>, onto which it paints. To start painting on a device, either pass the device through the constructor, or use <a class="el" href="classWt_1_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44" title="Begins painting on a paint device.">begin()</a>.</p>
<p>A typical use is to instantiate a WPainter from within a specialized <a class="el" href="classWt_1_1WPaintedWidget.html#ad8ce22eff41754c8616f45851f57fb1a" title="Paints the widget.">WPaintedWidget::paintEvent()</a> implementation, to paint on the given paint device, but you can also use a painter to paint directly to a particular paint device of choice, for example to create SVG, PDF or PNG images (as resources).</p>
<p>The painter maintains state such as the current <a class="el" href="classWt_1_1WPainter.html#a159ebf24df790e409d4060f7bd4aa725">pen</a>, <a class="el" href="classWt_1_1WPainter.html#ad63f01349e9163992d440e9aa85f916b">brush</a>, <a class="el" href="classWt_1_1WPainter.html#ad9cac6c8eaba94226f54343cde9676ea">font</a>, <a class="el" href="classWt_1_1WPainter.html#af34ea21a473d776dc659d25efa63a593">shadow</a>, <a class="el" href="classWt_1_1WPainter.html#a6fb5733c524d07b679c4af6526d0c032">transformation</a> and clipping settings (see <a class="el" href="classWt_1_1WPainter.html#a4163898f999d4ecafec52c3f8890f380" title="Enables or disables clipping.">setClipping()</a> and <a class="el" href="classWt_1_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5" title="Sets the clip path.">setClipPath()</a>). A particular state can be saved using <a class="el" href="classWt_1_1WPainter.html#a0262e162bb4be43f800c6c7b784c8d7a" title="Saves the current state.">save()</a> and later restored using <a class="el" href="classWt_1_1WPainter.html#a3fd8699e88d695cfd10043d18a666991" title="Returns the last save state.">restore()</a>.</p>
<p>The painting system distinguishes between device coordinates, logical coordinates, and local coordinates. The device coordinate system ranges from (0, 0) in the top left corner of the device, to (device-&gt;width().toPixels(), device-&gt;height().toPixels()) for the bottom right corner. The logical coordinate system defines a coordinate system that may be chosen independent of the geometry of the device, which is convenient to make abstraction of the actual device size. Finally, the current local coordinate system may be different from the logical coordinate system because of a transformation set (using <a class="el" href="classWt_1_1WPainter.html#aaf5755eca15cb6e73fc24edf3bbd5758" title="Translates the origin of the logical coordinate system.">translate()</a>, <a class="el" href="classWt_1_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e" title="Rotates the logical coordinate system.">rotate()</a>, and <a class="el" href="classWt_1_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938" title="Scales the logical coordinate system.">scale()</a>). Initially, the local coordinate system coincides with the logical coordinate system, which coincides with the device coordinate system.</p>
<p>The device coordinates are defined in terms of pixels. Even though most underlying devices are actual vector graphics formats, when used in conjunction with a <a class="el" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics.">WPaintedWidget</a>, these vector graphics are rendered by the browser onto a pixel-based canvas (like the rest of the user-interface). The coordinates are defined such that integer values correspond to an imaginary raster which separates the individual pixels, as in the figure below.</p>
<div class="image">
<img src="WPainter.png" alt="WPainter.png"/>
<div class="caption">
The device coordinate system for a 6x5 pixel device</div></div>
<p> As a consequence, to avoid anti-aliasing effects when drawing straight lines of width one pixel, you will need to use vertices that indicate the middle of a pixel to get a crisp one-pixel wide line, as in the example figure.</p>
<p>By setting a <a class="el" href="classWt_1_1WPainter.html#a7838d09f494223b51a5e22b73a71740b" title="Returns the viewport.">viewPort()</a> and a <a class="el" href="classWt_1_1WPainter.html#a0bcac25d9328887ed15669b4a4ae52de" title="Returns the current window.">window()</a>, a viewPort transformation is defined which maps logical coordinates onto device coordinates. By changing the world transformation (using <a class="el" href="classWt_1_1WPainter.html#ac0aa03db16f695b9bec3ef38588a5f3e" title="Sets a transformation for the logical coordinate system.">setWorldTransform()</a>, or <a class="el" href="classWt_1_1WPainter.html#aaf5755eca15cb6e73fc24edf3bbd5758" title="Translates the origin of the logical coordinate system.">translate()</a>, <a class="el" href="classWt_1_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e" title="Rotates the logical coordinate system.">rotate()</a>, <a class="el" href="classWt_1_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938" title="Scales the logical coordinate system.">scale()</a> operations), it is defined how current local coordinates map onto logical coordinates.</p>
<p>The painter provides support for clipping using an arbitrary <a class="el" href="classWt_1_1WPainterPath.html">path</a>, but not that the VmlImage only has limited support for clipping.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <span class="keyword">class </span>MyPaintedWidget : <span class="keyword">public</span> Wt::WPaintedWidget
 {
 <span class="keyword">public</span>:
   MyPaintedWidget(<a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *parent = 0)
     : Wt::WPaintedWidget(parent),
       foo_(100)
   {
      resize(200, 200); <span class="comment">// provide a default size</span>
   }

   <span class="keywordtype">void</span> setFoo(<span class="keywordtype">int</span> foo) {
      foo_ = foo;
      update(); <span class="comment">// trigger a repaint</span>
   }

 <span class="keyword">protected</span>:
   <span class="keywordtype">void</span> paintEvent(<a class="code" href="classWt_1_1WPaintDevice.html" title="The abstract base class for a paint device.">Wt::WPaintDevice</a> *paintDevice) {
     <a class="code" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">Wt::WPainter</a> painter(paintDevice);
     painter.drawLine(20, 20, foo_, foo_);
     ...
   }

 <span class="keyword">private</span>:
   <span class="keywordtype">int</span> foo_;
 };
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPaintedWidget.html#ad8ce22eff41754c8616f45851f57fb1a" title="Paints the widget.">WPaintedWidget::paintEvent(WPaintDevice *)</a> </dd></dl>
</div><hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="a605a81a1712a0dd0189044fc598fd5ff"></a><!-- doxytag: member="Wt::WPainter::RenderHint" ref="a605a81a1712a0dd0189044fc598fd5ff" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ff">Wt::WPainter::RenderHint</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enumeration for render hints. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="a605a81a1712a0dd0189044fc598fd5ffaadc2e7f25121334e55c3f569173ec5bb"></a><!-- doxytag: member="Antialiasing" ref="a605a81a1712a0dd0189044fc598fd5ffaadc2e7f25121334e55c3f569173ec5bb" args="" -->Antialiasing</em>&nbsp;</td><td>
<p>Antialiasing. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="a605a81a1712a0dd0189044fc598fd5ffab9625abcca35b8cb964fdb52a4dbf3d3"></a><!-- doxytag: member="LowQualityShadows" ref="a605a81a1712a0dd0189044fc598fd5ffab9625abcca35b8cb964fdb52a4dbf3d3" args="" -->LowQualityShadows</em>&nbsp;</td><td>
<p>Use low-quality shadows (applies only to VML) </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a420b1e54536d4815534f31208a825b54"></a><!-- doxytag: member="Wt::WPainter::WPainter" ref="a420b1e54536d4815534f31208a825b54" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WPainter::WPainter </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Default constructor. </p>
<p>Before painting, you must invoke <a class="el" href="classWt_1_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44" title="Begins painting on a paint device.">begin(WPaintDevice *)</a> on a paint device.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aa9e93aac4be32b5c0943360d9cf8c1cc" title="Creates a painter on a given paint device.">WPainter(WPaintDevice *)</a> </dd></dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6b81663b5599f0736ae5099ac7325d44"></a><!-- doxytag: member="Wt::WPainter::begin" ref="a6b81663b5599f0736ae5099ac7325d44" args="(WPaintDevice *device)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainter::begin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a> *&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Begins painting on a paint device. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a50beb0c8cb77c12e2dee807e4fe4bcb4" title="Ends painting.">end()</a>, <a class="el" href="classWt_1_1WPainter.html#a7a748d6ee49034a0996f9404eac9c2d1" title="Returns whether this painter is active on a paint device.">isActive()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ade2b538d5028082f3aba87625634184c"></a><!-- doxytag: member="Wt::WPainter::brush" ref="ade2b538d5028082f3aba87625634184c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a>&amp; Wt::WPainter::brush </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current brush. </p>
<p>Returns the brush style that is currently used for filling.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ad63f01349e9163992d440e9aa85f916b" title="Sets the fill style.">setBrush(const WBrush&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a601eba54f63b581080531100f5b5db78"></a><!-- doxytag: member="Wt::WPainter::clipPath" ref="a601eba54f63b581080531100f5b5db78" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> Wt::WPainter::clipPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the clip path. </p>
<p>The clip path is returned as it was defined: in the local coordinates at time of definition.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5" title="Sets the clip path.">setClipPath(const WPainterPath&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8d8e9616413abf58f949cd47c3bf1381"></a><!-- doxytag: member="Wt::WPainter::combinedTransform" ref="a8d8e9616413abf58f949cd47c3bf1381" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WTransform.html">WTransform</a> Wt::WPainter::combinedTransform </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the combined transformation matrix. </p>
<p>Returns the transformation matrix that maps coordinates to device coordinates. It is the combination of the current world transformation (which defines the transformation within the logical coordinate system) and the window/viewport transformation (which transforms logical coordinates to device coordinates).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ac0aa03db16f695b9bec3ef38588a5f3e" title="Sets a transformation for the logical coordinate system.">setWorldTransform()</a>, <a class="el" href="classWt_1_1WPainter.html#a70dcfbed2b7bdeb39ddbc7f213b5a9ce" title="Sets the viewport.">setViewPort()</a>, <a class="el" href="classWt_1_1WPainter.html#af223eea7db8164e404f6725705569fa6" title="Sets the window.">setWindow()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9d2e545f5506fd743a286618351c9b51"></a><!-- doxytag: member="Wt::WPainter::device" ref="a9d2e545f5506fd743a286618351c9b51" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPaintDevice.html">WPaintDevice</a>* Wt::WPainter::device </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the device on which this painter is active (or 0 if not active). </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44" title="Begins painting on a paint device.">begin(WPaintDevice *)</a>, <a class="el" href="classWt_1_1WPainter.html#aa9e93aac4be32b5c0943360d9cf8c1cc" title="Creates a painter on a given paint device.">WPainter(WPaintDevice *)</a>, <a class="el" href="classWt_1_1WPainter.html#a7a748d6ee49034a0996f9404eac9c2d1" title="Returns whether this painter is active on a paint device.">isActive()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa79220ed9456f67a393009e5c5eea27e"></a><!-- doxytag: member="Wt::WPainter::drawArc" ref="aa79220ed9456f67a393009e5c5eea27e" args="(const WRectF &amp;rectangle, int startAngle, int spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawArc </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an arc. </p>
<p>Draws an arc using the current pen, and fills using the current brush.</p>
<p>The arc is defined as a segment from an ellipse, which fits in the <em>rectangle</em>. The segment starts at <code>startAngle</code>, and spans an angle given by <code>spanAngle</code>. These angles have as unit 1/16th of a degree, and are measured counter-clockwise starting from the 3 o'clock position.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a5a1969356a8edae0cdd3abfc141082a7" title="Draws an ellipse.">drawEllipse(const WRectF&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#aa34b0972745692d55bc03ff1c57f1f4c" title="Draws a chord.">drawChord(const WRectF&amp;, int, int)</a> </dd>
<dd>
<a class="el" href="classWt_1_1WPainter.html#a96c03e411d46cd720f454504f53491bd" title="Draws an arc.">drawArc(double, double, double, double, int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a96c03e411d46cd720f454504f53491bd"></a><!-- doxytag: member="Wt::WPainter::drawArc" ref="a96c03e411d46cd720f454504f53491bd" args="(double x, double y, double width, double height, int startAngle, int spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawArc </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an arc. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e" title="Draws an arc.">drawArc(const WRectF&amp;, int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa34b0972745692d55bc03ff1c57f1f4c"></a><!-- doxytag: member="Wt::WPainter::drawChord" ref="aa34b0972745692d55bc03ff1c57f1f4c" args="(const WRectF &amp;rectangle, int startAngle, int spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawChord </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a chord. </p>
<p>Draws an arc using the current pen, and connects start and end point with a line. The area is filled using the current brush.</p>
<p>The arc is defined as a segment from an ellipse, which fits in the <em>rectangle</em>. The segment starts at <code>startAngle</code>, and spans an angle given by <code>spanAngle</code>. These angles have as unit 1/16th of a degree, and are measured counter-clockwise starting at 3 o'clock.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a5a1969356a8edae0cdd3abfc141082a7" title="Draws an ellipse.">drawEllipse(const WRectF&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e" title="Draws an arc.">drawArc(const WRectF&amp;, int, int)</a> </dd>
<dd>
<a class="el" href="classWt_1_1WPainter.html#ac8735155d03ab0332a66880e251b0fc2" title="Draws a chord.">drawChord(double, double, double, double, int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac8735155d03ab0332a66880e251b0fc2"></a><!-- doxytag: member="Wt::WPainter::drawChord" ref="ac8735155d03ab0332a66880e251b0fc2" args="(double x, double y, double width, double height, int startAngle, int spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawChord </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a chord. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aa34b0972745692d55bc03ff1c57f1f4c" title="Draws a chord.">drawChord(const WRectF&amp;, int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5a1969356a8edae0cdd3abfc141082a7"></a><!-- doxytag: member="Wt::WPainter::drawEllipse" ref="a5a1969356a8edae0cdd3abfc141082a7" args="(const WRectF &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawEllipse </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an ellipse. </p>
<p>Draws an ellipse using the current pen and fills it using the current brush.</p>
<p>The ellipse is defined as being bounded by the <code>rectangle</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e" title="Draws an arc.">drawArc(const WRectF&amp;, int, int)</a> </dd>
<dd>
<a class="el" href="classWt_1_1WPainter.html#ac46f725e54280bd6ace0e941eced790c" title="Draws an ellipse.">drawEllipse(double, double, double, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac46f725e54280bd6ace0e941eced790c"></a><!-- doxytag: member="Wt::WPainter::drawEllipse" ref="ac46f725e54280bd6ace0e941eced790c" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawEllipse </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an ellipse. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a5a1969356a8edae0cdd3abfc141082a7" title="Draws an ellipse.">drawEllipse(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae36e5ce0c6a324ec83ebbc397a513202"></a><!-- doxytag: member="Wt::WPainter::drawImage" ref="ae36e5ce0c6a324ec83ebbc397a513202" args="(const WPointF &amp;point, const Image &amp;image)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an image. </p>
<p>Draws the <code>image</code> so that the top left corner corresponds to <code>point</code>.</p>
<p>This is an overloaded method provided for convenience. </p>

</div>
</div>
<a class="anchor" id="ad69c06dbcb10d8f12bce1c369ae34c31"></a><!-- doxytag: member="Wt::WPainter::drawImage" ref="ad69c06dbcb10d8f12bce1c369ae34c31" args="(const WPointF &amp;point, const Image &amp;image, const WRectF &amp;sourceRect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>sourceRect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws part of an image. </p>
<p>Draws the <code>sourceRect</code> rectangle from an image to the location <code>point</code>.</p>
<p>This is an overloaded method provided for convenience. </p>

</div>
</div>
<a class="anchor" id="aaf6ea6a37b0fd8244d1b7afa3c24b55c"></a><!-- doxytag: member="Wt::WPainter::drawImage" ref="aaf6ea6a37b0fd8244d1b7afa3c24b55c" args="(const WRectF &amp;rect, const Image &amp;image)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an image inside a rectangle. </p>
<p>Draws the <em>image</em> inside <code>rect</code> (If necessary, the image is scaled to fit into the rectangle).</p>
<p>This is an overloaded method provided for convenience. </p>

</div>
</div>
<a class="anchor" id="a58a14d4610582eed6c76e0bda6117e3d"></a><!-- doxytag: member="Wt::WPainter::drawImage" ref="a58a14d4610582eed6c76e0bda6117e3d" args="(const WRectF &amp;rect, const Image &amp;image, const WRectF &amp;sourceRect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawImage </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>sourceRect</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws part of an image inside a rectangle. </p>
<p>Draws the <code>sourceRect</code> rectangle from an image inside <code>rect</code> (If necessary, the image is scaled to fit into the rectangle). </p>

</div>
</div>
<a class="anchor" id="a508b7828bbbf5805838a30a830c34f36"></a><!-- doxytag: member="Wt::WPainter::drawImage" ref="a508b7828bbbf5805838a30a830c34f36" args="(double x, double y, const Image &amp;image, double sx=0, double sy=0, double sw=&#45;1, double sh=&#45;1)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawImage </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainter_1_1Image.html">Image</a> &amp;&#160;</td>
          <td class="paramname"><em>image</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sx</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sy</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sw</em> = <code>-1</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sh</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws part of an image. </p>
<p>Draws the <code>sourceRect</code> rectangle with top left corner (<em>sx</em>, <em>sy</em>) and size <em>sw</em> x <code>sh</code> from an image to the location (<em>x</em>, <code>y</code>). </p>

</div>
</div>
<a class="anchor" id="a259601487cb2ec23a2f6f3d64c0c5913"></a><!-- doxytag: member="Wt::WPainter::drawLine" ref="a259601487cb2ec23a2f6f3d64c0c5913" args="(const WLineF &amp;line)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLineF.html">WLineF</a> &amp;&#160;</td>
          <td class="paramname"><em>line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a line. </p>
<p>Draws a line using the current pen.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a1c9ad3f225f7ca93800431adfc5731f0" title="Draws a line.">drawLine(const WPointF&amp;, const WPointF&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#ab596b1cfa230d37e9c429adde84d5985" title="Draws a line.">drawLine(double, double, double, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1c9ad3f225f7ca93800431adfc5731f0"></a><!-- doxytag: member="Wt::WPainter::drawLine" ref="a1c9ad3f225f7ca93800431adfc5731f0" args="(const WPointF &amp;p1, const WPointF &amp;p2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLine </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>p2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a line. </p>
<p>Draws a line defined by two points.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a259601487cb2ec23a2f6f3d64c0c5913" title="Draws a line.">drawLine(const WLineF&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#ab596b1cfa230d37e9c429adde84d5985" title="Draws a line.">drawLine(double, double, double, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab596b1cfa230d37e9c429adde84d5985"></a><!-- doxytag: member="Wt::WPainter::drawLine" ref="ab596b1cfa230d37e9c429adde84d5985" args="(double x1, double y1, double x2, double y2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLine </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a line. </p>
<p>Draws a line defined by two points.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a259601487cb2ec23a2f6f3d64c0c5913" title="Draws a line.">drawLine(const WLineF&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#a1c9ad3f225f7ca93800431adfc5731f0" title="Draws a line.">drawLine(const WPointF&amp;, const WPointF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a3b25c4144914fe09ca3b3cb63979bd69"></a><!-- doxytag: member="Wt::WPainter::drawLines" ref="a3b25c4144914fe09ca3b3cb63979bd69" args="(const WLineF *lines, int lineCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLines </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WLineF.html">WLineF</a> *&#160;</td>
          <td class="paramname"><em>lines</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lineCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an array of lines. </p>
<p>Draws the <code>lineCount</code> first lines from the given array of lines. </p>

</div>
</div>
<a class="anchor" id="ae1ac3c9c64907e53817ca5a28ead70d2"></a><!-- doxytag: member="Wt::WPainter::drawLines" ref="ae1ac3c9c64907e53817ca5a28ead70d2" args="(const WPointF *pointPairs, int lineCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLines </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *&#160;</td>
          <td class="paramname"><em>pointPairs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>lineCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an array of lines. </p>
<p>Draws <code>lineCount</code> lines, where each line is specified using a begin and end point that are read from an array. Thus, the <em>pointPairs</em> array must have at least 2*<code>lineCount</code> points. </p>

</div>
</div>
<a class="anchor" id="aebfb0fc62a58789f7b21650485ef9985"></a><!-- doxytag: member="Wt::WPainter::drawLines" ref="aebfb0fc62a58789f7b21650485ef9985" args="(const std::vector&lt; WLineF &gt; &amp;lines)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLines </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classWt_1_1WLineF.html">WLineF</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>lines</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an array of lines. </p>
<p>Draws the lines given in the vector. </p>

</div>
</div>
<a class="anchor" id="a762442b01f5603492e9673cb84081596"></a><!-- doxytag: member="Wt::WPainter::drawLines" ref="a762442b01f5603492e9673cb84081596" args="(const std::vector&lt; WPointF &gt; &amp;pointPairs)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawLines </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>pointPairs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws an array of lines. </p>
<p>Draws a number of lines that are specified by pairs of begin- and endpoints. The vector should hold a number of points that is a multiple of two. </p>

</div>
</div>
<a class="anchor" id="a2ef57868d6fbf99a901cbe1f29723b50"></a><!-- doxytag: member="Wt::WPainter::drawPath" ref="a2ef57868d6fbf99a901cbe1f29723b50" args="(const WPainterPath &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a (complex) path. </p>
<p>Draws and fills the given path using the current pen and brush.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a93cb3a37591c6dde4f006e8eada2d1f8" title="Strokes a path.">strokePath(const WPainterPath&amp;, const WPen&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#a761f8f85d14fe171fcc91823bc4dab5c" title="Fills a (complex) path.">fillPath(const WPainterPath&amp;, const WBrush&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a5c46ed008445a80feb258774a3af3b62"></a><!-- doxytag: member="Wt::WPainter::drawPie" ref="a5c46ed008445a80feb258774a3af3b62" args="(const WRectF &amp;rectangle, int startAngle, int spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPie </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a pie. </p>
<p>Draws an arc using the current pen, and connects start and end point with the center of the corresponding ellipse. The area is filled using the current brush.</p>
<p>The arc is defined as a segment from an ellipse, which fits in the <em>rectangle</em>. The segment starts at <code>startAngle</code>, and spans an angle given by <code>spanAngle</code>. These angles have as unit 1/16th of a degree, and are measured counter-clockwise starting at 3 o'clock.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a5a1969356a8edae0cdd3abfc141082a7" title="Draws an ellipse.">drawEllipse(const WRectF&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e" title="Draws an arc.">drawArc(const WRectF&amp;, int, int)</a> </dd>
<dd>
<a class="el" href="classWt_1_1WPainter.html#a3d8bc8608db5dad5e8d499b0fed58b85" title="Draws a pie.">drawPie(double, double, double, double, int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a3d8bc8608db5dad5e8d499b0fed58b85"></a><!-- doxytag: member="Wt::WPainter::drawPie" ref="a3d8bc8608db5dad5e8d499b0fed58b85" args="(double x, double y, double width, double height, int startAngle, int spanAngle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPie </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>spanAngle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a pie. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a5c46ed008445a80feb258774a3af3b62" title="Draws a pie.">drawPie(const WRectF&amp;, int, int)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aca2e989c3cd9bc635e6d13786cc73119"></a><!-- doxytag: member="Wt::WPainter::drawPoint" ref="aca2e989c3cd9bc635e6d13786cc73119" args="(const WPointF &amp;position)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPoint </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>position</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a point. </p>
<p>Draws a single point using the current pen. This is implemented by drawing a very short line, centered around the given <code>position</code>. To get the result of a single point, you should use a pen with a <a class="el" href="group__painting.html#gga819ef9a03fb79c9834508b79eac604f2a39a378820d5058a3677f9852c5783783" title="Square ends (prolongs line with half width)">Wt::SquareCap</a> or <a class="el" href="group__painting.html#gga819ef9a03fb79c9834508b79eac604f2a3d1c8a630cb15cec7b33434d9564182a" title="Round ends (terminates with a half circle)">Wt::RoundCap</a> pen cap style.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a9159b8ae72494b4973642143296daa96" title="Draws a point.">drawPoint(double, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a9159b8ae72494b4973642143296daa96"></a><!-- doxytag: member="Wt::WPainter::drawPoint" ref="a9159b8ae72494b4973642143296daa96" args="(double x, double y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPoint </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a point. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aca2e989c3cd9bc635e6d13786cc73119" title="Draws a point.">drawPoint(const WPointF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abe40c21da61567a23b04c81c9ea038b2"></a><!-- doxytag: member="Wt::WPainter::drawPoints" ref="abe40c21da61567a23b04c81c9ea038b2" args="(const WPointF *points, int pointCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPoints </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *&#160;</td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pointCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a number of points. </p>
<p>Draws the <code>pointCount</code> first points from the given array of points.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aca2e989c3cd9bc635e6d13786cc73119" title="Draws a point.">drawPoint(const WPointF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a82600053c72a0f939eb37ab45f2c1f3e"></a><!-- doxytag: member="Wt::WPainter::drawPolygon" ref="a82600053c72a0f939eb37ab45f2c1f3e" args="(const WPointF *points, int pointCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPolygon </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *&#160;</td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pointCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a polygon. </p>
<p>Draws a polygon that is specified by a list of points, using the current pen. The polygon is closed by connecting the last point with the first point, and filled using the current brush.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">drawPath(const WPainterPath&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#abbc6b39bef49d5fc67e09953fbcd4faa" title="Draws a polyline.">drawPolyline()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="abbc6b39bef49d5fc67e09953fbcd4faa"></a><!-- doxytag: member="Wt::WPainter::drawPolyline" ref="abbc6b39bef49d5fc67e09953fbcd4faa" args="(const WPointF *points, int pointCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawPolyline </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> *&#160;</td>
          <td class="paramname"><em>points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pointCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a polyline. </p>
<p>Draws a polyline that is specified by a list of points, using the current pen.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">drawPath(const WPainterPath&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#a82600053c72a0f939eb37ab45f2c1f3e" title="Draws a polygon.">drawPolygon()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad1fcb68312327194b3dccc67adc3bd33"></a><!-- doxytag: member="Wt::WPainter::drawRect" ref="ad1fcb68312327194b3dccc67adc3bd33" args="(const WRectF &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawRect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a rectangle. </p>
<p>Draws and fills a rectangle using the current pen and brush.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a368289c57968343089d82c26acc62ca6" title="Draws a rectangle.">drawRect(double, double, double, double)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a368289c57968343089d82c26acc62ca6"></a><!-- doxytag: member="Wt::WPainter::drawRect" ref="a368289c57968343089d82c26acc62ca6" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawRect </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a rectangle. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ad1fcb68312327194b3dccc67adc3bd33" title="Draws a rectangle.">drawRect(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a14fa5d0d5f3a05f8279bb0b4a06a8671"></a><!-- doxytag: member="Wt::WPainter::drawRects" ref="a14fa5d0d5f3a05f8279bb0b4a06a8671" args="(const WRectF *rectangles, int rectCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawRects </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> *&#160;</td>
          <td class="paramname"><em>rectangles</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rectCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a number of rectangles. </p>
<p>Draws and fills the <code>rectCount</code> first rectangles from the given array, using the current pen and brush.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ad1fcb68312327194b3dccc67adc3bd33" title="Draws a rectangle.">drawRect(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a36818dd1aea0c8f50dc0385dca39a6b8"></a><!-- doxytag: member="Wt::WPainter::drawRects" ref="a36818dd1aea0c8f50dc0385dca39a6b8" args="(const std::vector&lt; WRectF &gt; &amp;rectangles)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawRects </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>rectangles</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws a number of rectangles. </p>
<p>Draws and fills a list of rectangles using the current pen and brush.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ad1fcb68312327194b3dccc67adc3bd33" title="Draws a rectangle.">drawRect(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a8cd1366f2cb09b464f0b2e7d073c96c1"></a><!-- doxytag: member="Wt::WPainter::drawText" ref="a8cd1366f2cb09b464f0b2e7d073c96c1" args="(const WRectF &amp;rect, WFlags&lt; AlignmentFlag &gt; alignmentFlags, TextFlag textFlag, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rect</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignmentFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a>&#160;</td>
          <td class="paramname"><em>textFlag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws text. </p>
<p>Draws text using inside the rectangle, using the current font. The text is aligned inside the rectangle following alignment indications given in <code>flags</code>. The text is drawn using the current transformation, pen color (<a class="el" href="classWt_1_1WPainter.html#a1b60e758e7eb1865369a061cf07bf54c" title="Returns the current pen.">pen()</a>) and font settings (<a class="el" href="classWt_1_1WPainter.html#ab218488ea091c9ae543142bdca4da9bb" title="Returns the current font.">font()</a>).</p>
<p>AlignmentFlags is the logical OR of a horizontal and vertical alignment. Horizontal alignment may be one of AlignLeft, AlignCenter, or AlignRight. Vertical alignment is one of AlignTop, AlignMiddle or AlignBottom.</p>
<p>TextFlag determines how the text is rendered in the rectangle. Text can be rendered on one line or by wrapping the words within the rectangle.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>HtmlCanvas: on older browsers implementing Html5 canvas, text will be rendered horizontally (unaffected by rotation and unaffected by the scaling component of the transformation matrix). In that case, text is overlayed on top of painted shapes (in DOM div's), and is not covered by shapes that are painted after the text. Use the SVG and VML renderers (WPaintedWidget::inlineSvgVml) for the most accurate font rendering. Native HTML5 text rendering is supported on Firefox3+, Chrome2+ and Safari4+.</dd>
<dd>
TextWordWrap: using the TextWordWrap TextFlag is currently only supported by the SVG backend. The code generated by the SVG backend uses features currently only supported by Inkscape. Inkscape currently supports only Top vertical alignments. </dd></dl>

</div>
</div>
<a class="anchor" id="a8565a90a75207b318a2ff608e19df806"></a><!-- doxytag: member="Wt::WPainter::drawText" ref="a8565a90a75207b318a2ff608e19df806" args="(const WRectF &amp;rectangle, WFlags&lt; AlignmentFlag &gt; flags, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws text. </p>
<p>This is an overloaded method for convenience, it will render text on a single line.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a8cd1366f2cb09b464f0b2e7d073c96c1" title="Draws text.">drawText(const WRectF&amp;, WFlags&lt;AlignmentFlag&gt;, TextFlag textFlag, const WString&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ae2a04838933687fd0791e1187b28fdca"></a><!-- doxytag: member="Wt::WPainter::drawText" ref="ae2a04838933687fd0791e1187b28fdca" args="(double x, double y, double width, double height, WFlags&lt; AlignmentFlag &gt; flags, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawText </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>flags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws text. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a8565a90a75207b318a2ff608e19df806" title="Draws text.">drawText(const WRectF&amp;, WFlags&lt;AlignmentFlag&gt;, const WString&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa6a327223e1b5b09db4dfb20bd00ce99"></a><!-- doxytag: member="Wt::WPainter::drawText" ref="aa6a327223e1b5b09db4dfb20bd00ce99" args="(double x, double y, double width, double height, WFlags&lt; AlignmentFlag &gt; alignmentFlags, TextFlag textFlag, const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::drawText </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&lt; <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> &gt;&#160;</td>
          <td class="paramname"><em>alignmentFlags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a>&#160;</td>
          <td class="paramname"><em>textFlag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Draws text. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a8cd1366f2cb09b464f0b2e7d073c96c1" title="Draws text.">drawText</a>(const <a class="el" href="classWt_1_1WRectF.html" title="A value class that defines a rectangle.">WRectF</a>&amp; rect, WFlags&lt;AlignmentFlag&gt; alignmentFlags, <a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419" title="Enumeration that specifies the way text should be printed.">TextFlag</a> textFlag, const <a class="el" href="classWt_1_1WString.html" title="A value class which describes a locale-aware unicode string.">WString</a>&amp; text) </dd></dl>

</div>
</div>
<a class="anchor" id="a50beb0c8cb77c12e2dee807e4fe4bcb4"></a><!-- doxytag: member="Wt::WPainter::end" ref="a50beb0c8cb77c12e2dee807e4fe4bcb4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainter::end </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ends painting. </p>
<p>This method is called automatically from the destructor. </p>

</div>
</div>
<a class="anchor" id="a761f8f85d14fe171fcc91823bc4dab5c"></a><!-- doxytag: member="Wt::WPainter::fillPath" ref="a761f8f85d14fe171fcc91823bc4dab5c" args="(const WPainterPath &amp;path, const WBrush &amp;brush)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::fillPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td>
          <td class="paramname"><em>brush</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fills a (complex) path. </p>
<p>Like <a class="el" href="classWt_1_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">drawPath(const WPainterPath&amp;)</a>, but does not stroke the path, and fills the path with the given <code>brush</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">drawPath(const WPainterPath&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#a93cb3a37591c6dde4f006e8eada2d1f8" title="Strokes a path.">strokePath(const WPainterPath&amp;, const WPen&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4b9ce79b5abd8584fd2cf85876ab140f"></a><!-- doxytag: member="Wt::WPainter::fillRect" ref="a4b9ce79b5abd8584fd2cf85876ab140f" args="(const WRectF &amp;rectangle, const WBrush &amp;brush)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::fillRect </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>rectangle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td>
          <td class="paramname"><em>brush</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fills a rectangle. </p>
<p>Like <a class="el" href="classWt_1_1WPainter.html#ad1fcb68312327194b3dccc67adc3bd33" title="Draws a rectangle.">drawRect(const WRectF&amp;)</a>, but does not stroke the rect, and fills the rect with the given <code>brush</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ad1fcb68312327194b3dccc67adc3bd33" title="Draws a rectangle.">drawRect(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac99ee3d64df9742e167c01d750c899be"></a><!-- doxytag: member="Wt::WPainter::fillRect" ref="ac99ee3d64df9742e167c01d750c899be" args="(double x, double y, double width, double height, const WBrush &amp;brush)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::fillRect </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td>
          <td class="paramname"><em>brush</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Fills a rectangle. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a4b9ce79b5abd8584fd2cf85876ab140f" title="Fills a rectangle.">fillRect(const WRectF&amp;, const WBrush&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab218488ea091c9ae543142bdca4da9bb"></a><!-- doxytag: member="Wt::WPainter::font" ref="ab218488ea091c9ae543142bdca4da9bb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WFont.html">WFont</a>&amp; Wt::WPainter::font </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current font. </p>
<p>Returns the font that is currently used for rendering text. The default font is a 10pt sans serif font.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ad9cac6c8eaba94226f54343cde9676ea" title="Sets the font.">setFont(const WFont&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa99949d6a71d44f1240db64c32b6d803"></a><!-- doxytag: member="Wt::WPainter::hasClipping" ref="aa99949d6a71d44f1240db64c32b6d803" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainter::hasClipping </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether clipping is enabled. </p>
<p><code>Note:</code> Clipping is not supported for the VML renderer.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a4163898f999d4ecafec52c3f8890f380" title="Enables or disables clipping.">setClipping(bool)</a>, <a class="el" href="classWt_1_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5" title="Sets the clip path.">setClipPath(const WPainterPath&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7a748d6ee49034a0996f9404eac9c2d1"></a><!-- doxytag: member="Wt::WPainter::isActive" ref="a7a748d6ee49034a0996f9404eac9c2d1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainter::isActive </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns whether this painter is active on a paint device. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44" title="Begins painting on a paint device.">begin(WPaintDevice *)</a>, <a class="el" href="classWt_1_1WPainter.html#a50beb0c8cb77c12e2dee807e4fe4bcb4" title="Ends painting.">end()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a1b60e758e7eb1865369a061cf07bf54c"></a><!-- doxytag: member="Wt::WPainter::pen" ref="a1b60e758e7eb1865369a061cf07bf54c" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WPen.html">WPen</a>&amp; Wt::WPainter::pen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current pen. </p>
<p>Returns the pen that is currently used for stroking.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a159ebf24df790e409d4060f7bd4aa725" title="Sets the pen.">setPen(const WPen&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6be5dd738e97d35b91aaaea1d086b4b4"></a><!-- doxytag: member="Wt::WPainter::renderHints" ref="a6be5dd738e97d35b91aaaea1d086b4b4" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WPainter::renderHints </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current render hints. </p>
<p>Returns the logical OR of render hints currently set.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#af859825a00ff428e773c2abeb328f078" title="Sets a render hint.">setRenderHint(RenderHint, bool)</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac0cc4dedd2cf8801e12d7550bce2a2c1"></a><!-- doxytag: member="Wt::WPainter::resetTransform" ref="ac0cc4dedd2cf8801e12d7550bce2a2c1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::resetTransform </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Resets the current transformation. </p>
<p>Resets the current transformation to the identity transformation matrix, so that the logical coordinate system coincides with the device coordinate system. </p>

</div>
</div>
<a class="anchor" id="a3fd8699e88d695cfd10043d18a666991"></a><!-- doxytag: member="Wt::WPainter::restore" ref="a3fd8699e88d695cfd10043d18a666991" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::restore </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the last save state. </p>
<p>Pops the last saved state from the state stack.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a0262e162bb4be43f800c6c7b784c8d7a" title="Saves the current state.">save()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ab6d68d362e43f8e8df7e4400e2324d8e"></a><!-- doxytag: member="Wt::WPainter::rotate" ref="ab6d68d362e43f8e8df7e4400e2324d8e" args="(double angle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::rotate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>angle</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Rotates the logical coordinate system. </p>
<p>Rotates the logical coordinate system around its origin. The <code>angle</code> is specified in degrees, and positive values are clock-wise.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938" title="Scales the logical coordinate system.">scale(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#aef98cc3b4fa2da57efc9721a8bd2a6e5" title="Translates the origin of the logical coordinate system.">translate(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#ac0cc4dedd2cf8801e12d7550bce2a2c1" title="Resets the current transformation.">resetTransform()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0262e162bb4be43f800c6c7b784c8d7a"></a><!-- doxytag: member="Wt::WPainter::save" ref="a0262e162bb4be43f800c6c7b784c8d7a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::save </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Saves the current state. </p>
<p>A copy of the current state is saved on a stack. This state will may later be restored by popping this state from the stack using <a class="el" href="classWt_1_1WPainter.html#a3fd8699e88d695cfd10043d18a666991" title="Returns the last save state.">restore()</a>.</p>
<p>The state that is saved is the current <a class="el" href="classWt_1_1WPainter.html#a159ebf24df790e409d4060f7bd4aa725">pen</a>, <a class="el" href="classWt_1_1WPainter.html#ad63f01349e9163992d440e9aa85f916b">brush</a>, <a class="el" href="classWt_1_1WPainter.html#ad9cac6c8eaba94226f54343cde9676ea">font</a>, <a class="el" href="classWt_1_1WPainter.html#af34ea21a473d776dc659d25efa63a593">shadow</a>, <a class="el" href="classWt_1_1WPainter.html#a6fb5733c524d07b679c4af6526d0c032">transformation</a> and clipping settings (see <a class="el" href="classWt_1_1WPainter.html#a4163898f999d4ecafec52c3f8890f380" title="Enables or disables clipping.">setClipping()</a> and <a class="el" href="classWt_1_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5" title="Sets the clip path.">setClipPath()</a>).</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a3fd8699e88d695cfd10043d18a666991" title="Returns the last save state.">restore()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0167a7c8c8d72ee0cca6f735b65a7938"></a><!-- doxytag: member="Wt::WPainter::scale" ref="a0167a7c8c8d72ee0cca6f735b65a7938" args="(double sx, double sy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::scale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Scales the logical coordinate system. </p>
<p>Scales the logical coordinate system around its origin, by a factor in the X and Y directions.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e" title="Rotates the logical coordinate system.">rotate(double)</a>, <a class="el" href="classWt_1_1WPainter.html#aef98cc3b4fa2da57efc9721a8bd2a6e5" title="Translates the origin of the logical coordinate system.">translate(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#ac0cc4dedd2cf8801e12d7550bce2a2c1" title="Resets the current transformation.">resetTransform()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad63f01349e9163992d440e9aa85f916b"></a><!-- doxytag: member="Wt::WPainter::setBrush" ref="ad63f01349e9163992d440e9aa85f916b" args="(const WBrush &amp;brush)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setBrush </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WBrush.html">WBrush</a> &amp;&#160;</td>
          <td class="paramname"><em>brush</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the fill style. </p>
<p>Changes the fills style for subsequent draw operations.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ade2b538d5028082f3aba87625634184c" title="Returns the current brush.">brush()</a>, <a class="el" href="classWt_1_1WPainter.html#a159ebf24df790e409d4060f7bd4aa725" title="Sets the pen.">setPen(const WPen&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a65be44d995c5f06f065f68d15c8889a5"></a><!-- doxytag: member="Wt::WPainter::setClipPath" ref="a65be44d995c5f06f065f68d15c8889a5" args="(const WPainterPath &amp;clipPath)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setClipPath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&#160;</td>
          <td class="paramname"><em>clipPath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the clip path. </p>
<p>Sets the path that is used for clipping subsequent drawing operations. The clip path is only used when clipping is enabled using <a class="el" href="classWt_1_1WPainter.html#a4163898f999d4ecafec52c3f8890f380" title="Enables or disables clipping.">setClipping(bool)</a>. The path is specified in local coordinates.</p>
<p><em>Note: Only clipping with a rectangle is supported for the VML renderer (see <a class="el" href="classWt_1_1WPainterPath.html#a52f1c2008c15cd133e8fb405d8b0466b" title="Draws a rectangle.">WPainterPath::addRect()</a>). The rectangle must, after applying the combined transformation system, be aligned with the window.</em></p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a601eba54f63b581080531100f5b5db78" title="Returns the clip path.">clipPath()</a>, <a class="el" href="classWt_1_1WPainter.html#a4163898f999d4ecafec52c3f8890f380" title="Enables or disables clipping.">setClipping(bool)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a4163898f999d4ecafec52c3f8890f380"></a><!-- doxytag: member="Wt::WPainter::setClipping" ref="a4163898f999d4ecafec52c3f8890f380" args="(bool enable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setClipping </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enables or disables clipping. </p>
<p>Enables are disables clipping for subsequent operations using the current clip path set using <a class="el" href="classWt_1_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5" title="Sets the clip path.">setClipPath()</a>.</p>
<p><code>Note:</code> Clipping is not supported for the VML renderer.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aa99949d6a71d44f1240db64c32b6d803" title="Returns whether clipping is enabled.">hasClipping()</a>, <a class="el" href="classWt_1_1WPainter.html#a65be44d995c5f06f065f68d15c8889a5" title="Sets the clip path.">setClipPath(const WPainterPath&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ad9cac6c8eaba94226f54343cde9676ea"></a><!-- doxytag: member="Wt::WPainter::setFont" ref="ad9cac6c8eaba94226f54343cde9676ea" args="(const WFont &amp;font)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setFont </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WFont.html">WFont</a> &amp;&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the font. </p>
<p>Changes the font for subsequent text rendering. Note that only font sizes that are defined as an explicit size (see <a class="el" href="classWt_1_1WFont.html#a4d90d27f5888987091261e7ac227146fab8fde835312f7e4aa67998564f292f10" title="Explicit size, See also fontFixedSize()">WFont::FixedSize</a>) will render correctly in all devices (SVG, VML, and HtmlCanvas).</p>
<p>The list of fonts that will render correctly with VML (on IE&lt;9) are limited to the following: <a href="http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html">http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html</a></p>
<p>Careful, for a font family that contains a space, you need to add quotes, to <a class="el" href="classWt_1_1WFont.html#adf4922a79463304dedc2114049c054c1" title="Sets the font family.">WFont::setFamily()</a> e.g.</p>
<div class="fragment"><pre class="fragment"> WFont mono;
 mono.setFamily(<a class="code" href="classWt_1_1WFont.html#a29dc2c43365227caeb3d151dc849f9f4adbcd306de435d5aecc6f80255d8924f7" title="for example: Courier">WFont::Monospace</a>, <span class="stringliteral">&quot;&#39;Courier New&#39;&quot;</span>);
 mono.setSize(18);
</pre></div><dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ab218488ea091c9ae543142bdca4da9bb" title="Returns the current font.">font()</a>, <a class="el" href="classWt_1_1WPainter.html#a8cd1366f2cb09b464f0b2e7d073c96c1" title="Draws text.">drawText()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a159ebf24df790e409d4060f7bd4aa725"></a><!-- doxytag: member="Wt::WPainter::setPen" ref="a159ebf24df790e409d4060f7bd4aa725" args="(const WPen &amp;pen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setPen </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;&#160;</td>
          <td class="paramname"><em>pen</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the pen. </p>
<p>Changes the pen used for stroking subsequent draw operations.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a1b60e758e7eb1865369a061cf07bf54c" title="Returns the current pen.">pen()</a>, <a class="el" href="classWt_1_1WPainter.html#ad63f01349e9163992d440e9aa85f916b" title="Sets the fill style.">setBrush(const WBrush&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af859825a00ff428e773c2abeb328f078"></a><!-- doxytag: member="Wt::WPainter::setRenderHint" ref="af859825a00ff428e773c2abeb328f078" args="(RenderHint hint, bool on=true)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setRenderHint </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ff">RenderHint</a>&#160;</td>
          <td class="paramname"><em>hint</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>on</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets a render hint. </p>
<p>Renderers may ignore particular hints for which they have no support. </p>

</div>
</div>
<a class="anchor" id="a9c727b82879ab055f3fcf4c9cdfc1f8d"></a><!-- doxytag: member="Wt::WPainter::setShadow" ref="a9c727b82879ab055f3fcf4c9cdfc1f8d" args="(const WShadow &amp;shadow)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setShadow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WShadow.html">WShadow</a> &amp;&#160;</td>
          <td class="paramname"><em>shadow</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets a shadow effect. </p>
<p>The shadow effect is applied to all things drawn (paths, text and images).</p>
<dl class="note"><dt><b>Note:</b></dt><dd>With the VML backend (IE), the shadow is not applied to images, and the shadow color is always black; only the opacity (alpha) channel is taken into account. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a605a81a1712a0dd0189044fc598fd5ffab9625abcca35b8cb964fdb52a4dbf3d3" title="Use low-quality shadows (applies only to VML)">LowQualityShadows</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a70dcfbed2b7bdeb39ddbc7f213b5a9ce"></a><!-- doxytag: member="Wt::WPainter::setViewPort" ref="a70dcfbed2b7bdeb39ddbc7f213b5a9ce" args="(const WRectF &amp;viewPort)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setViewPort </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>viewPort</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the viewport. </p>
<p>Selects the part of the device that will correspond to the logical coordinate system.</p>
<p>By default, the viewport spans the entire device: it is the rectangle (0, 0) to (device-&gt;width(), device-&gt;height()). The window defines how the viewport is mapped to logical coordinates.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a7838d09f494223b51a5e22b73a71740b" title="Returns the viewport.">viewPort()</a>, <a class="el" href="classWt_1_1WPainter.html#af223eea7db8164e404f6725705569fa6" title="Sets the window.">setWindow(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="afd9272b6a583b273a64105e88fb65e42"></a><!-- doxytag: member="Wt::WPainter::setViewPort" ref="afd9272b6a583b273a64105e88fb65e42" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setViewPort </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the viewport. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a70dcfbed2b7bdeb39ddbc7f213b5a9ce" title="Sets the viewport.">setViewPort(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af223eea7db8164e404f6725705569fa6"></a><!-- doxytag: member="Wt::WPainter::setWindow" ref="af223eea7db8164e404f6725705569fa6" args="(const WRectF &amp;window)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setWindow </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&#160;</td>
          <td class="paramname"><em>window</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the window. </p>
<p>Defines the viewport rectangle in logical coordinates, and thus how logical coordinates map onto the viewPort.</p>
<p>By default, is (0, 0) to (device-&gt;width(), device-&gt;height()). Thus, the default window and viewport leave logical coordinates identical to device coordinates.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a0bcac25d9328887ed15669b4a4ae52de" title="Returns the current window.">window()</a>, <a class="el" href="classWt_1_1WPainter.html#a70dcfbed2b7bdeb39ddbc7f213b5a9ce" title="Sets the viewport.">setViewPort(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7d56a3fb66457c02584aa4bed8ce6023"></a><!-- doxytag: member="Wt::WPainter::setWindow" ref="a7d56a3fb66457c02584aa4bed8ce6023" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setWindow </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the window. </p>
<p>This is an overloaded method for convenience.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#af223eea7db8164e404f6725705569fa6" title="Sets the window.">setWindow(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ac0aa03db16f695b9bec3ef38588a5f3e"></a><!-- doxytag: member="Wt::WPainter::setWorldTransform" ref="ac0aa03db16f695b9bec3ef38588a5f3e" args="(const WTransform &amp;matrix, bool combine=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::setWorldTransform </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WTransform.html">WTransform</a> &amp;&#160;</td>
          <td class="paramname"><em>matrix</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>combine</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets a transformation for the logical coordinate system. </p>
<p>Sets a new transformation which transforms logical coordinates to device coordinates. When <code>combine</code> is <code>true</code>, the transformation is combined with the current world transformation matrix.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a6fb5733c524d07b679c4af6526d0c032" title="Returns the current world transformation matrix.">worldTransform()</a> </dd>
<dd>
<a class="el" href="classWt_1_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e" title="Rotates the logical coordinate system.">rotate(double)</a>, <a class="el" href="classWt_1_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938" title="Scales the logical coordinate system.">scale(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#aef98cc3b4fa2da57efc9721a8bd2a6e5" title="Translates the origin of the logical coordinate system.">translate(double, double)</a> </dd>
<dd>
<a class="el" href="classWt_1_1WPainter.html#ac0cc4dedd2cf8801e12d7550bce2a2c1" title="Resets the current transformation.">resetTransform()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="af34ea21a473d776dc659d25efa63a593"></a><!-- doxytag: member="Wt::WPainter::shadow" ref="af34ea21a473d776dc659d25efa63a593" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WShadow.html">WShadow</a>&amp; Wt::WPainter::shadow </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current shadow effect. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a9c727b82879ab055f3fcf4c9cdfc1f8d" title="Sets a shadow effect.">setShadow()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a93cb3a37591c6dde4f006e8eada2d1f8"></a><!-- doxytag: member="Wt::WPainter::strokePath" ref="a93cb3a37591c6dde4f006e8eada2d1f8" args="(const WPainterPath &amp;path, const WPen &amp;pen)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::strokePath </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&#160;</td>
          <td class="paramname"><em>path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPen.html">WPen</a> &amp;&#160;</td>
          <td class="paramname"><em>pen</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Strokes a path. </p>
<p>Like <a class="el" href="classWt_1_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">drawPath(const WPainterPath&amp;)</a>, but does not fill the path, and strokes the path with the given <code>pen</code>.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">drawPath(const WPainterPath&amp;)</a>, <a class="el" href="classWt_1_1WPainter.html#a761f8f85d14fe171fcc91823bc4dab5c" title="Fills a (complex) path.">fillPath(const WPainterPath&amp;, const WBrush&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aaf5755eca15cb6e73fc24edf3bbd5758"></a><!-- doxytag: member="Wt::WPainter::translate" ref="aaf5755eca15cb6e73fc24edf3bbd5758" args="(const WPointF &amp;offset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::translate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&#160;</td>
          <td class="paramname"><em>offset</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translates the origin of the logical coordinate system. </p>
<p>Translates the origin of the logical coordinate system to a new location relative to the current logical coordinate system.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aef98cc3b4fa2da57efc9721a8bd2a6e5" title="Translates the origin of the logical coordinate system.">translate(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e" title="Rotates the logical coordinate system.">rotate(double)</a>, <a class="el" href="classWt_1_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938" title="Scales the logical coordinate system.">scale(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#ac0cc4dedd2cf8801e12d7550bce2a2c1" title="Resets the current transformation.">resetTransform()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aef98cc3b4fa2da57efc9721a8bd2a6e5"></a><!-- doxytag: member="Wt::WPainter::translate" ref="aef98cc3b4fa2da57efc9721a8bd2a6e5" args="(double dx, double dy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainter::translate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Translates the origin of the logical coordinate system. </p>
<p>Translates the origin of the logical coordinate system to a new location relative to the logical coordinate system.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#aaf5755eca15cb6e73fc24edf3bbd5758" title="Translates the origin of the logical coordinate system.">translate(const WPointF&amp; offset)</a>, <a class="el" href="classWt_1_1WPainter.html#ab6d68d362e43f8e8df7e4400e2324d8e" title="Rotates the logical coordinate system.">rotate(double)</a>, <a class="el" href="classWt_1_1WPainter.html#a0167a7c8c8d72ee0cca6f735b65a7938" title="Scales the logical coordinate system.">scale(double, double)</a>, <a class="el" href="classWt_1_1WPainter.html#ac0cc4dedd2cf8801e12d7550bce2a2c1" title="Resets the current transformation.">resetTransform()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a7838d09f494223b51a5e22b73a71740b"></a><!-- doxytag: member="Wt::WPainter::viewPort" ref="a7838d09f494223b51a5e22b73a71740b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WRectF.html">WRectF</a> Wt::WPainter::viewPort </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the viewport. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a70dcfbed2b7bdeb39ddbc7f213b5a9ce" title="Sets the viewport.">setViewPort(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a0bcac25d9328887ed15669b4a4ae52de"></a><!-- doxytag: member="Wt::WPainter::window" ref="a0bcac25d9328887ed15669b4a4ae52de" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WRectF.html">WRectF</a> Wt::WPainter::window </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current window. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a70dcfbed2b7bdeb39ddbc7f213b5a9ce" title="Sets the viewport.">setViewPort(const WRectF&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a6fb5733c524d07b679c4af6526d0c032"></a><!-- doxytag: member="Wt::WPainter::worldTransform" ref="a6fb5733c524d07b679c4af6526d0c032" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WTransform.html">WTransform</a>&amp; Wt::WPainter::worldTransform </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the current world transformation matrix. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#ac0aa03db16f695b9bec3ef38588a5f3e" title="Sets a transformation for the logical coordinate system.">setWorldTransform()</a> </dd></dl>

</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>