class_qwt_painter.html 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.20"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>Qwt User&#39;s Guide: QwtPainter Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  17. <script type="text/javascript" src="search/searchdata.js"></script>
  18. <script type="text/javascript" src="search/search.js"></script>
  19. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  20. </head>
  21. <body>
  22. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  23. <div id="titlearea">
  24. <table cellspacing="0" cellpadding="0">
  25. <tbody>
  26. <tr style="height: 56px;">
  27. <td id="projectalign" style="padding-left: 0.5em;">
  28. <div id="projectname">Qwt User&#39;s Guide
  29. &#160;<span id="projectnumber">6.1.6</span>
  30. </div>
  31. </td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. <!-- end header part -->
  37. <!-- Generated by Doxygen 1.8.20 -->
  38. <script type="text/javascript">
  39. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  40. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  41. /* @license-end */
  42. </script>
  43. <script type="text/javascript" src="menudata.js"></script>
  44. <script type="text/javascript" src="menu.js"></script>
  45. <script type="text/javascript">
  46. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  47. $(function() {
  48. initMenu('',true,false,'search.php','Search');
  49. $(document).ready(function() { init_search(); });
  50. });
  51. /* @license-end */</script>
  52. <div id="main-nav"></div>
  53. </div><!-- top -->
  54. <div id="side-nav" class="ui-resizable side-nav-resizable">
  55. <div id="nav-tree">
  56. <div id="nav-tree-contents">
  57. <div id="nav-sync" class="sync"></div>
  58. </div>
  59. </div>
  60. <div id="splitbar" style="-moz-user-select:none;"
  61. class="ui-resizable-handle">
  62. </div>
  63. </div>
  64. <script type="text/javascript">
  65. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  66. $(document).ready(function(){initNavTree('class_qwt_painter.html',''); initResizable(); });
  67. /* @license-end */
  68. </script>
  69. <div id="doc-content">
  70. <!-- window showing the filter options -->
  71. <div id="MSearchSelectWindow"
  72. onmouseover="return searchBox.OnSearchSelectShow()"
  73. onmouseout="return searchBox.OnSearchSelectHide()"
  74. onkeydown="return searchBox.OnSearchSelectKey(event)">
  75. </div>
  76. <!-- iframe showing the search results (closed by default) -->
  77. <div id="MSearchResultsWindow">
  78. <iframe src="javascript:void(0)" frameborder="0"
  79. name="MSearchResults" id="MSearchResults">
  80. </iframe>
  81. </div>
  82. <div class="header">
  83. <div class="summary">
  84. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  85. <a href="class_qwt_painter-members.html">List of all members</a> </div>
  86. <div class="headertitle">
  87. <div class="title">QwtPainter Class Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p>A collection of QPainter workarounds.
  91. <a href="class_qwt_painter.html#details">More...</a></p>
  92. <p><code>#include &lt;<a class="el" href="qwt__painter_8h_source.html">qwt_painter.h</a>&gt;</code></p>
  93. <table class="memberdecls">
  94. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  95. Static Public Member Functions</h2></td></tr>
  96. <tr class="memitem:a174bca411198c64dfff828a15d80ddfb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a174bca411198c64dfff828a15d80ddfb">setPolylineSplitting</a> (bool)</td></tr>
  97. <tr class="memdesc:a174bca411198c64dfff828a15d80ddfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">En/Disable line splitting for the raster paint engine. <a href="class_qwt_painter.html#a174bca411198c64dfff828a15d80ddfb">More...</a><br /></td></tr>
  98. <tr class="separator:a174bca411198c64dfff828a15d80ddfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a831cf0efa8a0869ab79307495d7e4590"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a831cf0efa8a0869ab79307495d7e4590">polylineSplitting</a> ()</td></tr>
  100. <tr class="separator:a831cf0efa8a0869ab79307495d7e4590"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:a49581f980f2c761852cda08502c96abb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a49581f980f2c761852cda08502c96abb">setRoundingAlignment</a> (bool)</td></tr>
  102. <tr class="separator:a49581f980f2c761852cda08502c96abb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:ae9af230df7bb8d40b802d4f3205a8631"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ae9af230df7bb8d40b802d4f3205a8631">roundingAlignment</a> ()</td></tr>
  104. <tr class="separator:ae9af230df7bb8d40b802d4f3205a8631"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ab11788d777ce54a1959bf8387dba6ad9"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ab11788d777ce54a1959bf8387dba6ad9">roundingAlignment</a> (QPainter *)</td></tr>
  106. <tr class="separator:ab11788d777ce54a1959bf8387dba6ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a7b32c7e2937f7beea38728b9ce445860"><td class="memItemLeft" align="right" valign="top"><a id="a7b32c7e2937f7beea38728b9ce445860"></a>
  108. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a7b32c7e2937f7beea38728b9ce445860">drawText</a> (QPainter *, double x, double y, const QString &amp;)</td></tr>
  109. <tr class="memdesc:a7b32c7e2937f7beea38728b9ce445860"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawText() <br /></td></tr>
  110. <tr class="separator:a7b32c7e2937f7beea38728b9ce445860"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a60048491773b3eb7aac5b984a4bd9730"><td class="memItemLeft" align="right" valign="top"><a id="a60048491773b3eb7aac5b984a4bd9730"></a>
  112. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a60048491773b3eb7aac5b984a4bd9730">drawText</a> (QPainter *, const QPointF &amp;, const QString &amp;)</td></tr>
  113. <tr class="memdesc:a60048491773b3eb7aac5b984a4bd9730"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawText() <br /></td></tr>
  114. <tr class="separator:a60048491773b3eb7aac5b984a4bd9730"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a90fd62c3862e9f4543eda02279f75f10"><td class="memItemLeft" align="right" valign="top"><a id="a90fd62c3862e9f4543eda02279f75f10"></a>
  116. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a90fd62c3862e9f4543eda02279f75f10">drawText</a> (QPainter *, double x, double y, double w, double h, int flags, const QString &amp;)</td></tr>
  117. <tr class="memdesc:a90fd62c3862e9f4543eda02279f75f10"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawText() <br /></td></tr>
  118. <tr class="separator:a90fd62c3862e9f4543eda02279f75f10"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:a2866de24c2d7ddb88ee5919d09cad03f"><td class="memItemLeft" align="right" valign="top"><a id="a2866de24c2d7ddb88ee5919d09cad03f"></a>
  120. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a2866de24c2d7ddb88ee5919d09cad03f">drawText</a> (QPainter *, const QRectF &amp;, int flags, const QString &amp;)</td></tr>
  121. <tr class="memdesc:a2866de24c2d7ddb88ee5919d09cad03f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawText() <br /></td></tr>
  122. <tr class="separator:a2866de24c2d7ddb88ee5919d09cad03f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:a1a44fdbb66452b38d57369a485da3971"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a1a44fdbb66452b38d57369a485da3971">drawSimpleRichText</a> (QPainter *, const QRectF &amp;, int flags, const QTextDocument &amp;)</td></tr>
  124. <tr class="separator:a1a44fdbb66452b38d57369a485da3971"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a0779e2b85c7d04547933574fd2021193"><td class="memItemLeft" align="right" valign="top"><a id="a0779e2b85c7d04547933574fd2021193"></a>
  126. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a0779e2b85c7d04547933574fd2021193">drawRect</a> (QPainter *, double x, double y, double w, double h)</td></tr>
  127. <tr class="memdesc:a0779e2b85c7d04547933574fd2021193"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawRect() <br /></td></tr>
  128. <tr class="separator:a0779e2b85c7d04547933574fd2021193"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a838b9cc65ae98ecb40d62ed4281a37b7"><td class="memItemLeft" align="right" valign="top"><a id="a838b9cc65ae98ecb40d62ed4281a37b7"></a>
  130. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a838b9cc65ae98ecb40d62ed4281a37b7">drawRect</a> (QPainter *, const QRectF &amp;rect)</td></tr>
  131. <tr class="memdesc:a838b9cc65ae98ecb40d62ed4281a37b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawRect() <br /></td></tr>
  132. <tr class="separator:a838b9cc65ae98ecb40d62ed4281a37b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a8f5561421bf2d1c1093059f1b7bba7ba"><td class="memItemLeft" align="right" valign="top"><a id="a8f5561421bf2d1c1093059f1b7bba7ba"></a>
  134. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a8f5561421bf2d1c1093059f1b7bba7ba">fillRect</a> (QPainter *, const QRectF &amp;, const QBrush &amp;)</td></tr>
  135. <tr class="memdesc:a8f5561421bf2d1c1093059f1b7bba7ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::fillRect() <br /></td></tr>
  136. <tr class="separator:a8f5561421bf2d1c1093059f1b7bba7ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a0cce52b66d249859ff71e41edb3637ad"><td class="memItemLeft" align="right" valign="top"><a id="a0cce52b66d249859ff71e41edb3637ad"></a>
  138. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a0cce52b66d249859ff71e41edb3637ad">drawEllipse</a> (QPainter *, const QRectF &amp;)</td></tr>
  139. <tr class="memdesc:a0cce52b66d249859ff71e41edb3637ad"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawEllipse() <br /></td></tr>
  140. <tr class="separator:a0cce52b66d249859ff71e41edb3637ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a359c30354ddaa5603d3e4367855271b1"><td class="memItemLeft" align="right" valign="top"><a id="a359c30354ddaa5603d3e4367855271b1"></a>
  142. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a359c30354ddaa5603d3e4367855271b1">drawPie</a> (QPainter *, const QRectF &amp;, int a, int alen)</td></tr>
  143. <tr class="memdesc:a359c30354ddaa5603d3e4367855271b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPie() <br /></td></tr>
  144. <tr class="separator:a359c30354ddaa5603d3e4367855271b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:ad90ed35a673adb9767046c05b605bcf5"><td class="memItemLeft" align="right" valign="top"><a id="ad90ed35a673adb9767046c05b605bcf5"></a>
  146. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ad90ed35a673adb9767046c05b605bcf5">drawLine</a> (QPainter *, double x1, double y1, double x2, double y2)</td></tr>
  147. <tr class="memdesc:ad90ed35a673adb9767046c05b605bcf5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawLine() <br /></td></tr>
  148. <tr class="separator:ad90ed35a673adb9767046c05b605bcf5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a8f4ebba74be8858ca43e50fac363468c"><td class="memItemLeft" align="right" valign="top"><a id="a8f4ebba74be8858ca43e50fac363468c"></a>
  150. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a8f4ebba74be8858ca43e50fac363468c">drawLine</a> (QPainter *, const QPointF &amp;p1, const QPointF &amp;p2)</td></tr>
  151. <tr class="memdesc:a8f4ebba74be8858ca43e50fac363468c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawLine() <br /></td></tr>
  152. <tr class="separator:a8f4ebba74be8858ca43e50fac363468c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:af31427d37c1cfd4ddc84e013086a77e1"><td class="memItemLeft" align="right" valign="top"><a id="af31427d37c1cfd4ddc84e013086a77e1"></a>
  154. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#af31427d37c1cfd4ddc84e013086a77e1">drawLine</a> (QPainter *, const QLineF &amp;)</td></tr>
  155. <tr class="memdesc:af31427d37c1cfd4ddc84e013086a77e1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawLine() <br /></td></tr>
  156. <tr class="separator:af31427d37c1cfd4ddc84e013086a77e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:a2fff1088059c230864ac1eff90d8e975"><td class="memItemLeft" align="right" valign="top"><a id="a2fff1088059c230864ac1eff90d8e975"></a>
  158. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a2fff1088059c230864ac1eff90d8e975">drawPolygon</a> (QPainter *, const QPolygonF &amp;)</td></tr>
  159. <tr class="memdesc:a2fff1088059c230864ac1eff90d8e975"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPolygon() <br /></td></tr>
  160. <tr class="separator:a2fff1088059c230864ac1eff90d8e975"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:a60ab9909e9eac196c022b1ec6200d198"><td class="memItemLeft" align="right" valign="top"><a id="a60ab9909e9eac196c022b1ec6200d198"></a>
  162. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a60ab9909e9eac196c022b1ec6200d198">drawPolyline</a> (QPainter *, const QPolygonF &amp;)</td></tr>
  163. <tr class="memdesc:a60ab9909e9eac196c022b1ec6200d198"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPolyline() <br /></td></tr>
  164. <tr class="separator:a60ab9909e9eac196c022b1ec6200d198"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a2aac8306cd6863887db1f2987eb0eced"><td class="memItemLeft" align="right" valign="top"><a id="a2aac8306cd6863887db1f2987eb0eced"></a>
  166. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a2aac8306cd6863887db1f2987eb0eced">drawPolyline</a> (QPainter *, const QPointF *, int pointCount)</td></tr>
  167. <tr class="memdesc:a2aac8306cd6863887db1f2987eb0eced"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPolyline() <br /></td></tr>
  168. <tr class="separator:a2aac8306cd6863887db1f2987eb0eced"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:a67bd336cc96329e2d0e717574892c84c"><td class="memItemLeft" align="right" valign="top"><a id="a67bd336cc96329e2d0e717574892c84c"></a>
  170. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a67bd336cc96329e2d0e717574892c84c">drawPolygon</a> (QPainter *, const QPolygon &amp;)</td></tr>
  171. <tr class="memdesc:a67bd336cc96329e2d0e717574892c84c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPolygon() <br /></td></tr>
  172. <tr class="separator:a67bd336cc96329e2d0e717574892c84c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="memitem:a4846eb8406cc49435013e41e4debacdc"><td class="memItemLeft" align="right" valign="top"><a id="a4846eb8406cc49435013e41e4debacdc"></a>
  174. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a4846eb8406cc49435013e41e4debacdc">drawPolyline</a> (QPainter *, const QPolygon &amp;)</td></tr>
  175. <tr class="memdesc:a4846eb8406cc49435013e41e4debacdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPolyline() <br /></td></tr>
  176. <tr class="separator:a4846eb8406cc49435013e41e4debacdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:a479d20a9aed2dee2ccdd735c6e77bc58"><td class="memItemLeft" align="right" valign="top"><a id="a479d20a9aed2dee2ccdd735c6e77bc58"></a>
  178. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a479d20a9aed2dee2ccdd735c6e77bc58">drawPolyline</a> (QPainter *, const QPoint *, int pointCount)</td></tr>
  179. <tr class="memdesc:a479d20a9aed2dee2ccdd735c6e77bc58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPolyline() <br /></td></tr>
  180. <tr class="separator:a479d20a9aed2dee2ccdd735c6e77bc58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  181. <tr class="memitem:ab2e88f78d51387c661a9e10352ab945c"><td class="memItemLeft" align="right" valign="top"><a id="ab2e88f78d51387c661a9e10352ab945c"></a>
  182. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ab2e88f78d51387c661a9e10352ab945c">drawPoint</a> (QPainter *, const QPoint &amp;)</td></tr>
  183. <tr class="memdesc:ab2e88f78d51387c661a9e10352ab945c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoint() <br /></td></tr>
  184. <tr class="separator:ab2e88f78d51387c661a9e10352ab945c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  185. <tr class="memitem:a0e1bddfd725ea95f628c491149c2deba"><td class="memItemLeft" align="right" valign="top"><a id="a0e1bddfd725ea95f628c491149c2deba"></a>
  186. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a0e1bddfd725ea95f628c491149c2deba">drawPoints</a> (QPainter *, const QPolygon &amp;)</td></tr>
  187. <tr class="memdesc:a0e1bddfd725ea95f628c491149c2deba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoints() <br /></td></tr>
  188. <tr class="separator:a0e1bddfd725ea95f628c491149c2deba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  189. <tr class="memitem:a1f268ec257dbd52a7aca59c5c2ea3f98"><td class="memItemLeft" align="right" valign="top"><a id="a1f268ec257dbd52a7aca59c5c2ea3f98"></a>
  190. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a1f268ec257dbd52a7aca59c5c2ea3f98">drawPoints</a> (QPainter *, const QPoint *, int pointCount)</td></tr>
  191. <tr class="memdesc:a1f268ec257dbd52a7aca59c5c2ea3f98"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoints() <br /></td></tr>
  192. <tr class="separator:a1f268ec257dbd52a7aca59c5c2ea3f98"><td class="memSeparator" colspan="2">&#160;</td></tr>
  193. <tr class="memitem:a1e65c0e2436e253de937e164d365aa5f"><td class="memItemLeft" align="right" valign="top"><a id="a1e65c0e2436e253de937e164d365aa5f"></a>
  194. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a1e65c0e2436e253de937e164d365aa5f">drawPoint</a> (QPainter *, double x, double y)</td></tr>
  195. <tr class="memdesc:a1e65c0e2436e253de937e164d365aa5f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoint() <br /></td></tr>
  196. <tr class="separator:a1e65c0e2436e253de937e164d365aa5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  197. <tr class="memitem:a9b0ef616fc27c84dc7ee3cab5449a313"><td class="memItemLeft" align="right" valign="top"><a id="a9b0ef616fc27c84dc7ee3cab5449a313"></a>
  198. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a9b0ef616fc27c84dc7ee3cab5449a313">drawPoint</a> (QPainter *, const QPointF &amp;)</td></tr>
  199. <tr class="memdesc:a9b0ef616fc27c84dc7ee3cab5449a313"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoint() <br /></td></tr>
  200. <tr class="separator:a9b0ef616fc27c84dc7ee3cab5449a313"><td class="memSeparator" colspan="2">&#160;</td></tr>
  201. <tr class="memitem:a1a854725b6ff657557e678575dc56357"><td class="memItemLeft" align="right" valign="top"><a id="a1a854725b6ff657557e678575dc56357"></a>
  202. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a1a854725b6ff657557e678575dc56357">drawPoints</a> (QPainter *, const QPolygonF &amp;)</td></tr>
  203. <tr class="memdesc:a1a854725b6ff657557e678575dc56357"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoints() <br /></td></tr>
  204. <tr class="separator:a1a854725b6ff657557e678575dc56357"><td class="memSeparator" colspan="2">&#160;</td></tr>
  205. <tr class="memitem:af5fa718b25a9b4df10ddb7e1270a4289"><td class="memItemLeft" align="right" valign="top"><a id="af5fa718b25a9b4df10ddb7e1270a4289"></a>
  206. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#af5fa718b25a9b4df10ddb7e1270a4289">drawPoints</a> (QPainter *, const QPointF *, int pointCount)</td></tr>
  207. <tr class="memdesc:af5fa718b25a9b4df10ddb7e1270a4289"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPoints() <br /></td></tr>
  208. <tr class="separator:af5fa718b25a9b4df10ddb7e1270a4289"><td class="memSeparator" colspan="2">&#160;</td></tr>
  209. <tr class="memitem:a22cff4eba018aee6680c43347e92238d"><td class="memItemLeft" align="right" valign="top"><a id="a22cff4eba018aee6680c43347e92238d"></a>
  210. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a22cff4eba018aee6680c43347e92238d">drawPath</a> (QPainter *, const QPainterPath &amp;)</td></tr>
  211. <tr class="memdesc:a22cff4eba018aee6680c43347e92238d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPath() <br /></td></tr>
  212. <tr class="separator:a22cff4eba018aee6680c43347e92238d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  213. <tr class="memitem:a2825f068a54e21e885235235daac3ec7"><td class="memItemLeft" align="right" valign="top"><a id="a2825f068a54e21e885235235daac3ec7"></a>
  214. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a2825f068a54e21e885235235daac3ec7">drawImage</a> (QPainter *, const QRectF &amp;, const QImage &amp;)</td></tr>
  215. <tr class="memdesc:a2825f068a54e21e885235235daac3ec7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawImage() <br /></td></tr>
  216. <tr class="separator:a2825f068a54e21e885235235daac3ec7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  217. <tr class="memitem:aec25b066b31a967de60d645c58ed7557"><td class="memItemLeft" align="right" valign="top"><a id="aec25b066b31a967de60d645c58ed7557"></a>
  218. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#aec25b066b31a967de60d645c58ed7557">drawPixmap</a> (QPainter *, const QRectF &amp;, const QPixmap &amp;)</td></tr>
  219. <tr class="memdesc:aec25b066b31a967de60d645c58ed7557"><td class="mdescLeft">&#160;</td><td class="mdescRight">Wrapper for QPainter::drawPixmap() <br /></td></tr>
  220. <tr class="separator:aec25b066b31a967de60d645c58ed7557"><td class="memSeparator" colspan="2">&#160;</td></tr>
  221. <tr class="memitem:a388f68022ef77dbdae9d700e104f0976"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a388f68022ef77dbdae9d700e104f0976">drawRoundFrame</a> (QPainter *, const QRectF &amp;, const QPalette &amp;, int lineWidth, int frameStyle)</td></tr>
  222. <tr class="separator:a388f68022ef77dbdae9d700e104f0976"><td class="memSeparator" colspan="2">&#160;</td></tr>
  223. <tr class="memitem:a00b91696b5dc3264b54c99e436616804"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a00b91696b5dc3264b54c99e436616804">drawRoundedFrame</a> (QPainter *, const QRectF &amp;, double xRadius, double yRadius, const QPalette &amp;, int lineWidth, int frameStyle)</td></tr>
  224. <tr class="separator:a00b91696b5dc3264b54c99e436616804"><td class="memSeparator" colspan="2">&#160;</td></tr>
  225. <tr class="memitem:a31a3aed24cb13cd2ab3ad5f4cbde4b0f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a31a3aed24cb13cd2ab3ad5f4cbde4b0f">drawFrame</a> (QPainter *, const QRectF &amp;rect, const QPalette &amp;palette, QPalette::ColorRole foregroundRole, int frameWidth, int midLineWidth, int frameStyle)</td></tr>
  226. <tr class="separator:a31a3aed24cb13cd2ab3ad5f4cbde4b0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  227. <tr class="memitem:aad72e955692b37a06547a6c0d62817b0"><td class="memItemLeft" align="right" valign="top"><a id="aad72e955692b37a06547a6c0d62817b0"></a>
  228. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#aad72e955692b37a06547a6c0d62817b0">drawFocusRect</a> (QPainter *, const QWidget *)</td></tr>
  229. <tr class="memdesc:aad72e955692b37a06547a6c0d62817b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a focus rectangle on a widget using its style. <br /></td></tr>
  230. <tr class="separator:aad72e955692b37a06547a6c0d62817b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  231. <tr class="memitem:a3f6b853fa4a54712ea2ca20a9aa2f106"><td class="memItemLeft" align="right" valign="top"><a id="a3f6b853fa4a54712ea2ca20a9aa2f106"></a>
  232. static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a3f6b853fa4a54712ea2ca20a9aa2f106">drawFocusRect</a> (QPainter *, const QWidget *, const QRect &amp;)</td></tr>
  233. <tr class="memdesc:a3f6b853fa4a54712ea2ca20a9aa2f106"><td class="mdescLeft">&#160;</td><td class="mdescRight">Draw a focus rectangle on a widget using its style. <br /></td></tr>
  234. <tr class="separator:a3f6b853fa4a54712ea2ca20a9aa2f106"><td class="memSeparator" colspan="2">&#160;</td></tr>
  235. <tr class="memitem:ae1009209978e5bb3f390905b81fb699f"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ae1009209978e5bb3f390905b81fb699f">drawColorBar</a> (QPainter *painter, const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> &amp;, const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &amp;, const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;, Qt::Orientation, const QRectF &amp;)</td></tr>
  236. <tr class="separator:ae1009209978e5bb3f390905b81fb699f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  237. <tr class="memitem:a5d62fd1bd470fa0d42b7b2e06504a581"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a5d62fd1bd470fa0d42b7b2e06504a581">isAligning</a> (QPainter *painter)</td></tr>
  238. <tr class="separator:a5d62fd1bd470fa0d42b7b2e06504a581"><td class="memSeparator" colspan="2">&#160;</td></tr>
  239. <tr class="memitem:af352ad92f1c1dc8cfee0f3d799e2e26e"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#af352ad92f1c1dc8cfee0f3d799e2e26e">isX11GraphicsSystem</a> ()</td></tr>
  240. <tr class="separator:af352ad92f1c1dc8cfee0f3d799e2e26e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  241. <tr class="memitem:ab3207c4d8ee4ce7fd472f8faefb93657"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ab3207c4d8ee4ce7fd472f8faefb93657">fillPixmap</a> (const QWidget *, QPixmap &amp;, const QPoint &amp;offset=QPoint())</td></tr>
  242. <tr class="separator:ab3207c4d8ee4ce7fd472f8faefb93657"><td class="memSeparator" colspan="2">&#160;</td></tr>
  243. <tr class="memitem:a726b908df4fd65a15e0d7ec3862947bc"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#a726b908df4fd65a15e0d7ec3862947bc">drawBackgound</a> (QPainter *painter, const QRectF &amp;rect, const QWidget *widget)</td></tr>
  244. <tr class="separator:a726b908df4fd65a15e0d7ec3862947bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  245. <tr class="memitem:ad1acc33fc6d94791852d9c07d7e1e94e"><td class="memItemLeft" align="right" valign="top">static QPixmap&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_painter.html#ad1acc33fc6d94791852d9c07d7e1e94e">backingStore</a> (QWidget *, const QSize &amp;)</td></tr>
  246. <tr class="separator:ad1acc33fc6d94791852d9c07d7e1e94e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  247. </table>
  248. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  249. <div class="textblock"><p>A collection of QPainter workarounds. </p>
  250. </div><h2 class="groupheader">Member Function Documentation</h2>
  251. <a id="ad1acc33fc6d94791852d9c07d7e1e94e"></a>
  252. <h2 class="memtitle"><span class="permalink"><a href="#ad1acc33fc6d94791852d9c07d7e1e94e">&#9670;&nbsp;</a></span>backingStore()</h2>
  253. <div class="memitem">
  254. <div class="memproto">
  255. <table class="mlabels">
  256. <tr>
  257. <td class="mlabels-left">
  258. <table class="memname">
  259. <tr>
  260. <td class="memname">QPixmap QwtPainter::backingStore </td>
  261. <td>(</td>
  262. <td class="paramtype">QWidget *&#160;</td>
  263. <td class="paramname"><em>widget</em>, </td>
  264. </tr>
  265. <tr>
  266. <td class="paramkey"></td>
  267. <td></td>
  268. <td class="paramtype">const QSize &amp;&#160;</td>
  269. <td class="paramname"><em>size</em>&#160;</td>
  270. </tr>
  271. <tr>
  272. <td></td>
  273. <td>)</td>
  274. <td></td><td></td>
  275. </tr>
  276. </table>
  277. </td>
  278. <td class="mlabels-right">
  279. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  280. </tr>
  281. </table>
  282. </div><div class="memdoc">
  283. <dl class="section return"><dt>Returns</dt><dd>A pixmap that can be used as backing store</dd></dl>
  284. <dl class="params"><dt>Parameters</dt><dd>
  285. <table class="params">
  286. <tr><td class="paramname">widget</td><td>Widget, for which the backingstore is intended </td></tr>
  287. <tr><td class="paramname">size</td><td>Size of the pixmap </td></tr>
  288. </table>
  289. </dd>
  290. </dl>
  291. </div>
  292. </div>
  293. <a id="a726b908df4fd65a15e0d7ec3862947bc"></a>
  294. <h2 class="memtitle"><span class="permalink"><a href="#a726b908df4fd65a15e0d7ec3862947bc">&#9670;&nbsp;</a></span>drawBackgound()</h2>
  295. <div class="memitem">
  296. <div class="memproto">
  297. <table class="mlabels">
  298. <tr>
  299. <td class="mlabels-left">
  300. <table class="memname">
  301. <tr>
  302. <td class="memname">void QwtPainter::drawBackgound </td>
  303. <td>(</td>
  304. <td class="paramtype">QPainter *&#160;</td>
  305. <td class="paramname"><em>painter</em>, </td>
  306. </tr>
  307. <tr>
  308. <td class="paramkey"></td>
  309. <td></td>
  310. <td class="paramtype">const QRectF &amp;&#160;</td>
  311. <td class="paramname"><em>rect</em>, </td>
  312. </tr>
  313. <tr>
  314. <td class="paramkey"></td>
  315. <td></td>
  316. <td class="paramtype">const QWidget *&#160;</td>
  317. <td class="paramname"><em>widget</em>&#160;</td>
  318. </tr>
  319. <tr>
  320. <td></td>
  321. <td>)</td>
  322. <td></td><td></td>
  323. </tr>
  324. </table>
  325. </td>
  326. <td class="mlabels-right">
  327. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  328. </tr>
  329. </table>
  330. </div><div class="memdoc">
  331. <p>Fill rect with the background of a widget</p>
  332. <dl class="params"><dt>Parameters</dt><dd>
  333. <table class="params">
  334. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  335. <tr><td class="paramname">rect</td><td>Rectangle to be filled </td></tr>
  336. <tr><td class="paramname">widget</td><td>Widget</td></tr>
  337. </table>
  338. </dd>
  339. </dl>
  340. <dl class="section see"><dt>See also</dt><dd>QStyle::PE_Widget, QWidget::backgroundRole() </dd></dl>
  341. </div>
  342. </div>
  343. <a id="ae1009209978e5bb3f390905b81fb699f"></a>
  344. <h2 class="memtitle"><span class="permalink"><a href="#ae1009209978e5bb3f390905b81fb699f">&#9670;&nbsp;</a></span>drawColorBar()</h2>
  345. <div class="memitem">
  346. <div class="memproto">
  347. <table class="mlabels">
  348. <tr>
  349. <td class="mlabels-left">
  350. <table class="memname">
  351. <tr>
  352. <td class="memname">void QwtPainter::drawColorBar </td>
  353. <td>(</td>
  354. <td class="paramtype">QPainter *&#160;</td>
  355. <td class="paramname"><em>painter</em>, </td>
  356. </tr>
  357. <tr>
  358. <td class="paramkey"></td>
  359. <td></td>
  360. <td class="paramtype">const <a class="el" href="class_qwt_color_map.html">QwtColorMap</a> &amp;&#160;</td>
  361. <td class="paramname"><em>colorMap</em>, </td>
  362. </tr>
  363. <tr>
  364. <td class="paramkey"></td>
  365. <td></td>
  366. <td class="paramtype">const <a class="el" href="class_qwt_interval.html">QwtInterval</a> &amp;&#160;</td>
  367. <td class="paramname"><em>interval</em>, </td>
  368. </tr>
  369. <tr>
  370. <td class="paramkey"></td>
  371. <td></td>
  372. <td class="paramtype">const <a class="el" href="class_qwt_scale_map.html">QwtScaleMap</a> &amp;&#160;</td>
  373. <td class="paramname"><em>scaleMap</em>, </td>
  374. </tr>
  375. <tr>
  376. <td class="paramkey"></td>
  377. <td></td>
  378. <td class="paramtype">Qt::Orientation&#160;</td>
  379. <td class="paramname"><em>orientation</em>, </td>
  380. </tr>
  381. <tr>
  382. <td class="paramkey"></td>
  383. <td></td>
  384. <td class="paramtype">const QRectF &amp;&#160;</td>
  385. <td class="paramname"><em>rect</em>&#160;</td>
  386. </tr>
  387. <tr>
  388. <td></td>
  389. <td>)</td>
  390. <td></td><td></td>
  391. </tr>
  392. </table>
  393. </td>
  394. <td class="mlabels-right">
  395. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  396. </tr>
  397. </table>
  398. </div><div class="memdoc">
  399. <p>Draw a color bar into a rectangle</p>
  400. <dl class="params"><dt>Parameters</dt><dd>
  401. <table class="params">
  402. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  403. <tr><td class="paramname">colorMap</td><td>Color map </td></tr>
  404. <tr><td class="paramname">interval</td><td>Value range </td></tr>
  405. <tr><td class="paramname">scaleMap</td><td>Scale map </td></tr>
  406. <tr><td class="paramname">orientation</td><td>Orientation </td></tr>
  407. <tr><td class="paramname">rect</td><td>Traget rectangle </td></tr>
  408. </table>
  409. </dd>
  410. </dl>
  411. </div>
  412. </div>
  413. <a id="a31a3aed24cb13cd2ab3ad5f4cbde4b0f"></a>
  414. <h2 class="memtitle"><span class="permalink"><a href="#a31a3aed24cb13cd2ab3ad5f4cbde4b0f">&#9670;&nbsp;</a></span>drawFrame()</h2>
  415. <div class="memitem">
  416. <div class="memproto">
  417. <table class="mlabels">
  418. <tr>
  419. <td class="mlabels-left">
  420. <table class="memname">
  421. <tr>
  422. <td class="memname">void QwtPainter::drawFrame </td>
  423. <td>(</td>
  424. <td class="paramtype">QPainter *&#160;</td>
  425. <td class="paramname"><em>painter</em>, </td>
  426. </tr>
  427. <tr>
  428. <td class="paramkey"></td>
  429. <td></td>
  430. <td class="paramtype">const QRectF &amp;&#160;</td>
  431. <td class="paramname"><em>rect</em>, </td>
  432. </tr>
  433. <tr>
  434. <td class="paramkey"></td>
  435. <td></td>
  436. <td class="paramtype">const QPalette &amp;&#160;</td>
  437. <td class="paramname"><em>palette</em>, </td>
  438. </tr>
  439. <tr>
  440. <td class="paramkey"></td>
  441. <td></td>
  442. <td class="paramtype">QPalette::ColorRole&#160;</td>
  443. <td class="paramname"><em>foregroundRole</em>, </td>
  444. </tr>
  445. <tr>
  446. <td class="paramkey"></td>
  447. <td></td>
  448. <td class="paramtype">int&#160;</td>
  449. <td class="paramname"><em>frameWidth</em>, </td>
  450. </tr>
  451. <tr>
  452. <td class="paramkey"></td>
  453. <td></td>
  454. <td class="paramtype">int&#160;</td>
  455. <td class="paramname"><em>midLineWidth</em>, </td>
  456. </tr>
  457. <tr>
  458. <td class="paramkey"></td>
  459. <td></td>
  460. <td class="paramtype">int&#160;</td>
  461. <td class="paramname"><em>frameStyle</em>&#160;</td>
  462. </tr>
  463. <tr>
  464. <td></td>
  465. <td>)</td>
  466. <td></td><td></td>
  467. </tr>
  468. </table>
  469. </td>
  470. <td class="mlabels-right">
  471. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  472. </tr>
  473. </table>
  474. </div><div class="memdoc">
  475. <p>Draw a rectangular frame</p>
  476. <dl class="params"><dt>Parameters</dt><dd>
  477. <table class="params">
  478. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  479. <tr><td class="paramname">rect</td><td>Frame rectangle </td></tr>
  480. <tr><td class="paramname">palette</td><td>Palette </td></tr>
  481. <tr><td class="paramname">foregroundRole</td><td>Foreground role used for QFrame::Plain </td></tr>
  482. <tr><td class="paramname">frameWidth</td><td>Frame width </td></tr>
  483. <tr><td class="paramname">midLineWidth</td><td>Used for QFrame::Box </td></tr>
  484. <tr><td class="paramname">frameStyle</td><td>bitwise OR´ed value of QFrame::Shape and QFrame::Shadow </td></tr>
  485. </table>
  486. </dd>
  487. </dl>
  488. </div>
  489. </div>
  490. <a id="a00b91696b5dc3264b54c99e436616804"></a>
  491. <h2 class="memtitle"><span class="permalink"><a href="#a00b91696b5dc3264b54c99e436616804">&#9670;&nbsp;</a></span>drawRoundedFrame()</h2>
  492. <div class="memitem">
  493. <div class="memproto">
  494. <table class="mlabels">
  495. <tr>
  496. <td class="mlabels-left">
  497. <table class="memname">
  498. <tr>
  499. <td class="memname">void QwtPainter::drawRoundedFrame </td>
  500. <td>(</td>
  501. <td class="paramtype">QPainter *&#160;</td>
  502. <td class="paramname"><em>painter</em>, </td>
  503. </tr>
  504. <tr>
  505. <td class="paramkey"></td>
  506. <td></td>
  507. <td class="paramtype">const QRectF &amp;&#160;</td>
  508. <td class="paramname"><em>rect</em>, </td>
  509. </tr>
  510. <tr>
  511. <td class="paramkey"></td>
  512. <td></td>
  513. <td class="paramtype">double&#160;</td>
  514. <td class="paramname"><em>xRadius</em>, </td>
  515. </tr>
  516. <tr>
  517. <td class="paramkey"></td>
  518. <td></td>
  519. <td class="paramtype">double&#160;</td>
  520. <td class="paramname"><em>yRadius</em>, </td>
  521. </tr>
  522. <tr>
  523. <td class="paramkey"></td>
  524. <td></td>
  525. <td class="paramtype">const QPalette &amp;&#160;</td>
  526. <td class="paramname"><em>palette</em>, </td>
  527. </tr>
  528. <tr>
  529. <td class="paramkey"></td>
  530. <td></td>
  531. <td class="paramtype">int&#160;</td>
  532. <td class="paramname"><em>lineWidth</em>, </td>
  533. </tr>
  534. <tr>
  535. <td class="paramkey"></td>
  536. <td></td>
  537. <td class="paramtype">int&#160;</td>
  538. <td class="paramname"><em>frameStyle</em>&#160;</td>
  539. </tr>
  540. <tr>
  541. <td></td>
  542. <td>)</td>
  543. <td></td><td></td>
  544. </tr>
  545. </table>
  546. </td>
  547. <td class="mlabels-right">
  548. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  549. </tr>
  550. </table>
  551. </div><div class="memdoc">
  552. <p>Draw a rectangular frame with rounded borders</p>
  553. <dl class="params"><dt>Parameters</dt><dd>
  554. <table class="params">
  555. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  556. <tr><td class="paramname">rect</td><td>Frame rectangle </td></tr>
  557. <tr><td class="paramname">xRadius</td><td>x-radius of the ellipses defining the corners </td></tr>
  558. <tr><td class="paramname">yRadius</td><td>y-radius of the ellipses defining the corners </td></tr>
  559. <tr><td class="paramname">palette</td><td>QPalette::WindowText is used for plain borders QPalette::Dark and QPalette::Light for raised or sunken borders </td></tr>
  560. <tr><td class="paramname">lineWidth</td><td>Line width </td></tr>
  561. <tr><td class="paramname">frameStyle</td><td>bitwise OR´ed value of QFrame::Shape and QFrame::Shadow </td></tr>
  562. </table>
  563. </dd>
  564. </dl>
  565. </div>
  566. </div>
  567. <a id="a388f68022ef77dbdae9d700e104f0976"></a>
  568. <h2 class="memtitle"><span class="permalink"><a href="#a388f68022ef77dbdae9d700e104f0976">&#9670;&nbsp;</a></span>drawRoundFrame()</h2>
  569. <div class="memitem">
  570. <div class="memproto">
  571. <table class="mlabels">
  572. <tr>
  573. <td class="mlabels-left">
  574. <table class="memname">
  575. <tr>
  576. <td class="memname">void QwtPainter::drawRoundFrame </td>
  577. <td>(</td>
  578. <td class="paramtype">QPainter *&#160;</td>
  579. <td class="paramname"><em>painter</em>, </td>
  580. </tr>
  581. <tr>
  582. <td class="paramkey"></td>
  583. <td></td>
  584. <td class="paramtype">const QRectF &amp;&#160;</td>
  585. <td class="paramname"><em>rect</em>, </td>
  586. </tr>
  587. <tr>
  588. <td class="paramkey"></td>
  589. <td></td>
  590. <td class="paramtype">const QPalette &amp;&#160;</td>
  591. <td class="paramname"><em>palette</em>, </td>
  592. </tr>
  593. <tr>
  594. <td class="paramkey"></td>
  595. <td></td>
  596. <td class="paramtype">int&#160;</td>
  597. <td class="paramname"><em>lineWidth</em>, </td>
  598. </tr>
  599. <tr>
  600. <td class="paramkey"></td>
  601. <td></td>
  602. <td class="paramtype">int&#160;</td>
  603. <td class="paramname"><em>frameStyle</em>&#160;</td>
  604. </tr>
  605. <tr>
  606. <td></td>
  607. <td>)</td>
  608. <td></td><td></td>
  609. </tr>
  610. </table>
  611. </td>
  612. <td class="mlabels-right">
  613. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  614. </tr>
  615. </table>
  616. </div><div class="memdoc">
  617. <p>Draw a round frame</p>
  618. <dl class="params"><dt>Parameters</dt><dd>
  619. <table class="params">
  620. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  621. <tr><td class="paramname">rect</td><td>Frame rectangle </td></tr>
  622. <tr><td class="paramname">palette</td><td>QPalette::WindowText is used for plain borders QPalette::Dark and QPalette::Light for raised or sunken borders </td></tr>
  623. <tr><td class="paramname">lineWidth</td><td>Line width </td></tr>
  624. <tr><td class="paramname">frameStyle</td><td>bitwise OR´ed value of QFrame::Shape and QFrame::Shadow </td></tr>
  625. </table>
  626. </dd>
  627. </dl>
  628. </div>
  629. </div>
  630. <a id="a1a44fdbb66452b38d57369a485da3971"></a>
  631. <h2 class="memtitle"><span class="permalink"><a href="#a1a44fdbb66452b38d57369a485da3971">&#9670;&nbsp;</a></span>drawSimpleRichText()</h2>
  632. <div class="memitem">
  633. <div class="memproto">
  634. <table class="mlabels">
  635. <tr>
  636. <td class="mlabels-left">
  637. <table class="memname">
  638. <tr>
  639. <td class="memname">void QwtPainter::drawSimpleRichText </td>
  640. <td>(</td>
  641. <td class="paramtype">QPainter *&#160;</td>
  642. <td class="paramname"><em>painter</em>, </td>
  643. </tr>
  644. <tr>
  645. <td class="paramkey"></td>
  646. <td></td>
  647. <td class="paramtype">const QRectF &amp;&#160;</td>
  648. <td class="paramname"><em>rect</em>, </td>
  649. </tr>
  650. <tr>
  651. <td class="paramkey"></td>
  652. <td></td>
  653. <td class="paramtype">int&#160;</td>
  654. <td class="paramname"><em>flags</em>, </td>
  655. </tr>
  656. <tr>
  657. <td class="paramkey"></td>
  658. <td></td>
  659. <td class="paramtype">const QTextDocument &amp;&#160;</td>
  660. <td class="paramname"><em>text</em>&#160;</td>
  661. </tr>
  662. <tr>
  663. <td></td>
  664. <td>)</td>
  665. <td></td><td></td>
  666. </tr>
  667. </table>
  668. </td>
  669. <td class="mlabels-right">
  670. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  671. </tr>
  672. </table>
  673. </div><div class="memdoc">
  674. <p>Draw a text document into a rectangle</p>
  675. <dl class="params"><dt>Parameters</dt><dd>
  676. <table class="params">
  677. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  678. <tr><td class="paramname">rect</td><td>Traget rectangle </td></tr>
  679. <tr><td class="paramname">flags</td><td>Alignments/Text flags, see QPainter::drawText() </td></tr>
  680. <tr><td class="paramname">text</td><td>Text document </td></tr>
  681. </table>
  682. </dd>
  683. </dl>
  684. </div>
  685. </div>
  686. <a id="ab3207c4d8ee4ce7fd472f8faefb93657"></a>
  687. <h2 class="memtitle"><span class="permalink"><a href="#ab3207c4d8ee4ce7fd472f8faefb93657">&#9670;&nbsp;</a></span>fillPixmap()</h2>
  688. <div class="memitem">
  689. <div class="memproto">
  690. <table class="mlabels">
  691. <tr>
  692. <td class="mlabels-left">
  693. <table class="memname">
  694. <tr>
  695. <td class="memname">void QwtPainter::fillPixmap </td>
  696. <td>(</td>
  697. <td class="paramtype">const QWidget *&#160;</td>
  698. <td class="paramname"><em>widget</em>, </td>
  699. </tr>
  700. <tr>
  701. <td class="paramkey"></td>
  702. <td></td>
  703. <td class="paramtype">QPixmap &amp;&#160;</td>
  704. <td class="paramname"><em>pixmap</em>, </td>
  705. </tr>
  706. <tr>
  707. <td class="paramkey"></td>
  708. <td></td>
  709. <td class="paramtype">const QPoint &amp;&#160;</td>
  710. <td class="paramname"><em>offset</em> = <code>QPoint()</code>&#160;</td>
  711. </tr>
  712. <tr>
  713. <td></td>
  714. <td>)</td>
  715. <td></td><td></td>
  716. </tr>
  717. </table>
  718. </td>
  719. <td class="mlabels-right">
  720. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  721. </tr>
  722. </table>
  723. </div><div class="memdoc">
  724. <p>Fill a pixmap with the content of a widget</p>
  725. <p>In Qt &gt;= 5.0 QPixmap::fill() is a nop, in Qt 4.x it is buggy for backgrounds with gradients. Thus <a class="el" href="class_qwt_painter.html#ab3207c4d8ee4ce7fd472f8faefb93657">fillPixmap()</a> offers an alternative implementation.</p>
  726. <dl class="params"><dt>Parameters</dt><dd>
  727. <table class="params">
  728. <tr><td class="paramname">widget</td><td>Widget </td></tr>
  729. <tr><td class="paramname">pixmap</td><td>Pixmap to be filled </td></tr>
  730. <tr><td class="paramname">offset</td><td>Offset</td></tr>
  731. </table>
  732. </dd>
  733. </dl>
  734. <dl class="section see"><dt>See also</dt><dd>QPixmap::fill() </dd></dl>
  735. </div>
  736. </div>
  737. <a id="a5d62fd1bd470fa0d42b7b2e06504a581"></a>
  738. <h2 class="memtitle"><span class="permalink"><a href="#a5d62fd1bd470fa0d42b7b2e06504a581">&#9670;&nbsp;</a></span>isAligning()</h2>
  739. <div class="memitem">
  740. <div class="memproto">
  741. <table class="mlabels">
  742. <tr>
  743. <td class="mlabels-left">
  744. <table class="memname">
  745. <tr>
  746. <td class="memname">bool QwtPainter::isAligning </td>
  747. <td>(</td>
  748. <td class="paramtype">QPainter *&#160;</td>
  749. <td class="paramname"><em>painter</em></td><td>)</td>
  750. <td></td>
  751. </tr>
  752. </table>
  753. </td>
  754. <td class="mlabels-right">
  755. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  756. </tr>
  757. </table>
  758. </div><div class="memdoc">
  759. <p>Check if the painter is using a paint engine, that aligns coordinates to integers. Today these are all paint engines beside QPaintEngine::Pdf and QPaintEngine::SVG.</p>
  760. <p>If we have an integer based paint engine it is also checked if the painter has a transformation matrix, that rotates or scales.</p>
  761. <dl class="params"><dt>Parameters</dt><dd>
  762. <table class="params">
  763. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  764. </table>
  765. </dd>
  766. </dl>
  767. <dl class="section return"><dt>Returns</dt><dd>true, when the painter is aligning</dd></dl>
  768. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_painter.html#a49581f980f2c761852cda08502c96abb">setRoundingAlignment()</a> </dd></dl>
  769. </div>
  770. </div>
  771. <a id="af352ad92f1c1dc8cfee0f3d799e2e26e"></a>
  772. <h2 class="memtitle"><span class="permalink"><a href="#af352ad92f1c1dc8cfee0f3d799e2e26e">&#9670;&nbsp;</a></span>isX11GraphicsSystem()</h2>
  773. <div class="memitem">
  774. <div class="memproto">
  775. <table class="mlabels">
  776. <tr>
  777. <td class="mlabels-left">
  778. <table class="memname">
  779. <tr>
  780. <td class="memname">bool QwtPainter::isX11GraphicsSystem </td>
  781. <td>(</td>
  782. <td class="paramname"></td><td>)</td>
  783. <td></td>
  784. </tr>
  785. </table>
  786. </td>
  787. <td class="mlabels-right">
  788. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  789. </tr>
  790. </table>
  791. </div><div class="memdoc">
  792. <p>Check is the application is running with the X11 graphics system that has some special capabilities that can be used for incremental painting to a widget.</p>
  793. <dl class="section return"><dt>Returns</dt><dd>True, when the graphics system is X11 </dd></dl>
  794. </div>
  795. </div>
  796. <a id="a831cf0efa8a0869ab79307495d7e4590"></a>
  797. <h2 class="memtitle"><span class="permalink"><a href="#a831cf0efa8a0869ab79307495d7e4590">&#9670;&nbsp;</a></span>polylineSplitting()</h2>
  798. <div class="memitem">
  799. <div class="memproto">
  800. <table class="mlabels">
  801. <tr>
  802. <td class="mlabels-left">
  803. <table class="memname">
  804. <tr>
  805. <td class="memname">bool QwtPainter::polylineSplitting </td>
  806. <td>(</td>
  807. <td class="paramname"></td><td>)</td>
  808. <td></td>
  809. </tr>
  810. </table>
  811. </td>
  812. <td class="mlabels-right">
  813. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  814. </tr>
  815. </table>
  816. </div><div class="memdoc">
  817. <dl class="section return"><dt>Returns</dt><dd>True, when line splitting for the raster paint engine is enabled. </dd></dl>
  818. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_painter.html#a174bca411198c64dfff828a15d80ddfb" title="En/Disable line splitting for the raster paint engine.">setPolylineSplitting()</a> </dd></dl>
  819. </div>
  820. </div>
  821. <a id="ae9af230df7bb8d40b802d4f3205a8631"></a>
  822. <h2 class="memtitle"><span class="permalink"><a href="#ae9af230df7bb8d40b802d4f3205a8631">&#9670;&nbsp;</a></span>roundingAlignment() <span class="overload">[1/2]</span></h2>
  823. <div class="memitem">
  824. <div class="memproto">
  825. <table class="mlabels">
  826. <tr>
  827. <td class="mlabels-left">
  828. <table class="memname">
  829. <tr>
  830. <td class="memname">bool QwtPainter::roundingAlignment </td>
  831. <td>(</td>
  832. <td class="paramname"></td><td>)</td>
  833. <td></td>
  834. </tr>
  835. </table>
  836. </td>
  837. <td class="mlabels-right">
  838. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  839. </tr>
  840. </table>
  841. </div><div class="memdoc">
  842. <p>Check whether coordinates should be rounded, before they are painted to a paint engine that rounds to integer values. For other paint engines ( PDF, SVG ), this flag has no effect.</p>
  843. <dl class="section return"><dt>Returns</dt><dd>True, when rounding is enabled </dd></dl>
  844. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_painter.html#a49581f980f2c761852cda08502c96abb">setRoundingAlignment()</a>, <a class="el" href="class_qwt_painter.html#a5d62fd1bd470fa0d42b7b2e06504a581">isAligning()</a> </dd></dl>
  845. </div>
  846. </div>
  847. <a id="ab11788d777ce54a1959bf8387dba6ad9"></a>
  848. <h2 class="memtitle"><span class="permalink"><a href="#ab11788d777ce54a1959bf8387dba6ad9">&#9670;&nbsp;</a></span>roundingAlignment() <span class="overload">[2/2]</span></h2>
  849. <div class="memitem">
  850. <div class="memproto">
  851. <table class="mlabels">
  852. <tr>
  853. <td class="mlabels-left">
  854. <table class="memname">
  855. <tr>
  856. <td class="memname">bool QwtPainter::roundingAlignment </td>
  857. <td>(</td>
  858. <td class="paramtype">QPainter *&#160;</td>
  859. <td class="paramname"><em>painter</em></td><td>)</td>
  860. <td></td>
  861. </tr>
  862. </table>
  863. </td>
  864. <td class="mlabels-right">
  865. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
  866. </tr>
  867. </table>
  868. </div><div class="memdoc">
  869. <dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_qwt_painter.html#ae9af230df7bb8d40b802d4f3205a8631">roundingAlignment()</a> &amp;&amp; isAligning(painter); </dd></dl>
  870. <dl class="params"><dt>Parameters</dt><dd>
  871. <table class="params">
  872. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  873. </table>
  874. </dd>
  875. </dl>
  876. </div>
  877. </div>
  878. <a id="a174bca411198c64dfff828a15d80ddfb"></a>
  879. <h2 class="memtitle"><span class="permalink"><a href="#a174bca411198c64dfff828a15d80ddfb">&#9670;&nbsp;</a></span>setPolylineSplitting()</h2>
  880. <div class="memitem">
  881. <div class="memproto">
  882. <table class="mlabels">
  883. <tr>
  884. <td class="mlabels-left">
  885. <table class="memname">
  886. <tr>
  887. <td class="memname">void QwtPainter::setPolylineSplitting </td>
  888. <td>(</td>
  889. <td class="paramtype">bool&#160;</td>
  890. <td class="paramname"><em>enable</em></td><td>)</td>
  891. <td></td>
  892. </tr>
  893. </table>
  894. </td>
  895. <td class="mlabels-right">
  896. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  897. </tr>
  898. </table>
  899. </div><div class="memdoc">
  900. <p>En/Disable line splitting for the raster paint engine. </p>
  901. <p>In some Qt versions the raster paint engine paints polylines of many points much faster when they are split in smaller chunks: f.e all supported Qt versions &gt;= Qt 5.0 when drawing an antialiased polyline with a pen width &gt;=2.</p>
  902. <p>Also the raster paint engine has a nasty bug in many versions ( Qt 4.8 - ... ) for short lines ( <a href="https://codereview.qt-project.org/#/c/99456">https://codereview.qt-project.org/#/c/99456</a> ), that is worked around in this mode.</p>
  903. <p>The default setting is true.</p>
  904. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_painter.html#a831cf0efa8a0869ab79307495d7e4590">polylineSplitting()</a> </dd></dl>
  905. </div>
  906. </div>
  907. <a id="a49581f980f2c761852cda08502c96abb"></a>
  908. <h2 class="memtitle"><span class="permalink"><a href="#a49581f980f2c761852cda08502c96abb">&#9670;&nbsp;</a></span>setRoundingAlignment()</h2>
  909. <div class="memitem">
  910. <div class="memproto">
  911. <table class="mlabels">
  912. <tr>
  913. <td class="mlabels-left">
  914. <table class="memname">
  915. <tr>
  916. <td class="memname">void QwtPainter::setRoundingAlignment </td>
  917. <td>(</td>
  918. <td class="paramtype">bool&#160;</td>
  919. <td class="paramname"><em>enable</em></td><td>)</td>
  920. <td></td>
  921. </tr>
  922. </table>
  923. </td>
  924. <td class="mlabels-right">
  925. <span class="mlabels"><span class="mlabel">static</span></span> </td>
  926. </tr>
  927. </table>
  928. </div><div class="memdoc">
  929. <p>Enable whether coordinates should be rounded, before they are painted to a paint engine that floors to integer values. For other paint engines ( PDF, SVG ) this flag has no effect. <a class="el" href="class_qwt_painter.html" title="A collection of QPainter workarounds.">QwtPainter</a> stores this flag only, the rounding itself is done in the painting code ( f.e the plot items ).</p>
  930. <p>The default setting is true.</p>
  931. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_painter.html#ae9af230df7bb8d40b802d4f3205a8631">roundingAlignment()</a>, <a class="el" href="class_qwt_painter.html#a5d62fd1bd470fa0d42b7b2e06504a581">isAligning()</a> </dd></dl>
  932. </div>
  933. </div>
  934. </div><!-- contents -->
  935. </div><!-- doc-content -->
  936. <!-- start footer part -->
  937. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  938. <ul>
  939. <li class="navelem"><a class="el" href="class_qwt_painter.html">QwtPainter</a></li>
  940. <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 </li>
  941. </ul>
  942. </div>
  943. </body>
  944. </html>