class_qwt_text_engine.html 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  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: QwtTextEngine 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_text_engine.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-methods">Public Member Functions</a> &#124;
  85. <a href="#pro-methods">Protected Member Functions</a> &#124;
  86. <a href="class_qwt_text_engine-members.html">List of all members</a> </div>
  87. <div class="headertitle">
  88. <div class="title">QwtTextEngine Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
  89. </div><!--header-->
  90. <div class="contents">
  91. <p>Abstract base class for rendering text strings.
  92. <a href="class_qwt_text_engine.html#details">More...</a></p>
  93. <p><code>#include &lt;<a class="el" href="qwt__text__engine_8h_source.html">qwt_text_engine.h</a>&gt;</code></p>
  94. <div class="dynheader">
  95. Inheritance diagram for QwtTextEngine:</div>
  96. <div class="dyncontent">
  97. <div class="center"><img src="class_qwt_text_engine__inherit__graph.png" border="0" usemap="#a_qwt_text_engine_inherit__map" alt="Inheritance graph"/></div>
  98. <map name="_qwt_text_engine_inherit__map" id="a_qwt_text_engine_inherit__map">
  99. <area shape="rect" title="Abstract base class for rendering text strings." alt="" coords="201,5,311,32"/>
  100. <area shape="rect" href="class_qwt_math_m_l_text_engine.html" title="Text Engine for the MathML renderer of the Qt solutions package." alt="" coords="5,80,163,107"/>
  101. <area shape="rect" href="class_qwt_plain_text_engine.html" title="A text engine for plain texts." alt="" coords="187,80,325,107"/>
  102. <area shape="rect" href="class_qwt_rich_text_engine.html" title="A text engine for Qt rich texts." alt="" coords="349,80,488,107"/>
  103. </map>
  104. <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
  105. <table class="memberdecls">
  106. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  107. Public Member Functions</h2></td></tr>
  108. <tr class="memitem:adda9e23494429c54b3cc3452940fb2bc"><td class="memItemLeft" align="right" valign="top"><a id="adda9e23494429c54b3cc3452940fb2bc"></a>
  109. virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#adda9e23494429c54b3cc3452940fb2bc">~QwtTextEngine</a> ()</td></tr>
  110. <tr class="memdesc:adda9e23494429c54b3cc3452940fb2bc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
  111. <tr class="separator:adda9e23494429c54b3cc3452940fb2bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:aee891b14d90c817b8c73d551f623cc17"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#aee891b14d90c817b8c73d551f623cc17">heightForWidth</a> (const QFont &amp;font, int flags, const QString &amp;text, double width) const =0</td></tr>
  113. <tr class="separator:aee891b14d90c817b8c73d551f623cc17"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:ad9382cc8ff22c6b3e448fce566a76178"><td class="memItemLeft" align="right" valign="top">virtual QSizeF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#ad9382cc8ff22c6b3e448fce566a76178">textSize</a> (const QFont &amp;font, int flags, const QString &amp;text) const =0</td></tr>
  115. <tr class="separator:ad9382cc8ff22c6b3e448fce566a76178"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a98316f2f6f4f50216ceffbe9babe2901"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#a98316f2f6f4f50216ceffbe9babe2901">mightRender</a> (const QString &amp;text) const =0</td></tr>
  117. <tr class="separator:a98316f2f6f4f50216ceffbe9babe2901"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a83c8d3dc590b9914e9216c01e78e0838"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#a83c8d3dc590b9914e9216c01e78e0838">textMargins</a> (const QFont &amp;font, const QString &amp;text, double &amp;left, double &amp;right, double &amp;top, double &amp;bottom) const =0</td></tr>
  119. <tr class="separator:a83c8d3dc590b9914e9216c01e78e0838"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:ad727f58f9eebfec86369e7f2e5bf6a59"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#ad727f58f9eebfec86369e7f2e5bf6a59">draw</a> (QPainter *painter, const QRectF &amp;rect, int flags, const QString &amp;text) const =0</td></tr>
  121. <tr class="separator:ad727f58f9eebfec86369e7f2e5bf6a59"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. </table><table class="memberdecls">
  123. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  124. Protected Member Functions</h2></td></tr>
  125. <tr class="memitem:a97c5ef76ee920ab0f19e178e85017d9d"><td class="memItemLeft" align="right" valign="top"><a id="a97c5ef76ee920ab0f19e178e85017d9d"></a>
  126. &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_text_engine.html#a97c5ef76ee920ab0f19e178e85017d9d">QwtTextEngine</a> ()</td></tr>
  127. <tr class="memdesc:a97c5ef76ee920ab0f19e178e85017d9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
  128. <tr class="separator:a97c5ef76ee920ab0f19e178e85017d9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. </table>
  130. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  131. <div class="textblock"><p>Abstract base class for rendering text strings. </p>
  132. <p>A text engine is responsible for rendering texts for a specific text format. They are used by <a class="el" href="class_qwt_text.html" title="A class representing a text.">QwtText</a> to render a text.</p>
  133. <p><a class="el" href="class_qwt_plain_text_engine.html" title="A text engine for plain texts.">QwtPlainTextEngine</a> and <a class="el" href="class_qwt_rich_text_engine.html" title="A text engine for Qt rich texts.">QwtRichTextEngine</a> are part of the Qwt library. The implementation of <a class="el" href="class_qwt_math_m_l_text_engine.html" title="Text Engine for the MathML renderer of the Qt solutions package.">QwtMathMLTextEngine</a> uses code from the Qt solution package. Because of license implications it is built into a separate library.</p>
  134. <dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_text.html#aef6a1e71b1feba3116ce69f6c9de70ad">QwtText::setTextEngine()</a> </dd></dl>
  135. </div><h2 class="groupheader">Member Function Documentation</h2>
  136. <a id="ad727f58f9eebfec86369e7f2e5bf6a59"></a>
  137. <h2 class="memtitle"><span class="permalink"><a href="#ad727f58f9eebfec86369e7f2e5bf6a59">&#9670;&nbsp;</a></span>draw()</h2>
  138. <div class="memitem">
  139. <div class="memproto">
  140. <table class="mlabels">
  141. <tr>
  142. <td class="mlabels-left">
  143. <table class="memname">
  144. <tr>
  145. <td class="memname">virtual void QwtTextEngine::draw </td>
  146. <td>(</td>
  147. <td class="paramtype">QPainter *&#160;</td>
  148. <td class="paramname"><em>painter</em>, </td>
  149. </tr>
  150. <tr>
  151. <td class="paramkey"></td>
  152. <td></td>
  153. <td class="paramtype">const QRectF &amp;&#160;</td>
  154. <td class="paramname"><em>rect</em>, </td>
  155. </tr>
  156. <tr>
  157. <td class="paramkey"></td>
  158. <td></td>
  159. <td class="paramtype">int&#160;</td>
  160. <td class="paramname"><em>flags</em>, </td>
  161. </tr>
  162. <tr>
  163. <td class="paramkey"></td>
  164. <td></td>
  165. <td class="paramtype">const QString &amp;&#160;</td>
  166. <td class="paramname"><em>text</em>&#160;</td>
  167. </tr>
  168. <tr>
  169. <td></td>
  170. <td>)</td>
  171. <td></td><td> const</td>
  172. </tr>
  173. </table>
  174. </td>
  175. <td class="mlabels-right">
  176. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  177. </tr>
  178. </table>
  179. </div><div class="memdoc">
  180. <p>Draw the text in a clipping rectangle</p>
  181. <dl class="params"><dt>Parameters</dt><dd>
  182. <table class="params">
  183. <tr><td class="paramname">painter</td><td>Painter </td></tr>
  184. <tr><td class="paramname">rect</td><td>Clipping rectangle </td></tr>
  185. <tr><td class="paramname">flags</td><td>Bitwise OR of the flags like in for QPainter::drawText() </td></tr>
  186. <tr><td class="paramname">text</td><td>Text to be rendered </td></tr>
  187. </table>
  188. </dd>
  189. </dl>
  190. <p>Implemented in <a class="el" href="class_qwt_math_m_l_text_engine.html#a7d762090045267910dfd579defb6fa29">QwtMathMLTextEngine</a>, <a class="el" href="class_qwt_rich_text_engine.html#a06a4adbfd09b33896c8df14d861311ae">QwtRichTextEngine</a>, and <a class="el" href="class_qwt_plain_text_engine.html#a84d8e3e2a4710d3e1143ca47020f1c4a">QwtPlainTextEngine</a>.</p>
  191. </div>
  192. </div>
  193. <a id="aee891b14d90c817b8c73d551f623cc17"></a>
  194. <h2 class="memtitle"><span class="permalink"><a href="#aee891b14d90c817b8c73d551f623cc17">&#9670;&nbsp;</a></span>heightForWidth()</h2>
  195. <div class="memitem">
  196. <div class="memproto">
  197. <table class="mlabels">
  198. <tr>
  199. <td class="mlabels-left">
  200. <table class="memname">
  201. <tr>
  202. <td class="memname">virtual double QwtTextEngine::heightForWidth </td>
  203. <td>(</td>
  204. <td class="paramtype">const QFont &amp;&#160;</td>
  205. <td class="paramname"><em>font</em>, </td>
  206. </tr>
  207. <tr>
  208. <td class="paramkey"></td>
  209. <td></td>
  210. <td class="paramtype">int&#160;</td>
  211. <td class="paramname"><em>flags</em>, </td>
  212. </tr>
  213. <tr>
  214. <td class="paramkey"></td>
  215. <td></td>
  216. <td class="paramtype">const QString &amp;&#160;</td>
  217. <td class="paramname"><em>text</em>, </td>
  218. </tr>
  219. <tr>
  220. <td class="paramkey"></td>
  221. <td></td>
  222. <td class="paramtype">double&#160;</td>
  223. <td class="paramname"><em>width</em>&#160;</td>
  224. </tr>
  225. <tr>
  226. <td></td>
  227. <td>)</td>
  228. <td></td><td> const</td>
  229. </tr>
  230. </table>
  231. </td>
  232. <td class="mlabels-right">
  233. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  234. </tr>
  235. </table>
  236. </div><div class="memdoc">
  237. <p>Find the height for a given width</p>
  238. <dl class="params"><dt>Parameters</dt><dd>
  239. <table class="params">
  240. <tr><td class="paramname">font</td><td>Font of the text </td></tr>
  241. <tr><td class="paramname">flags</td><td>Bitwise OR of the flags used like in QPainter::drawText </td></tr>
  242. <tr><td class="paramname">text</td><td>Text to be rendered </td></tr>
  243. <tr><td class="paramname">width</td><td>Width</td></tr>
  244. </table>
  245. </dd>
  246. </dl>
  247. <dl class="section return"><dt>Returns</dt><dd>Calculated height </dd></dl>
  248. <p>Implemented in <a class="el" href="class_qwt_math_m_l_text_engine.html#a9b9d72be4816b901acd3a9e3e8754712">QwtMathMLTextEngine</a>, <a class="el" href="class_qwt_rich_text_engine.html#aba12fcba7303a187128cb01d06ecb382">QwtRichTextEngine</a>, and <a class="el" href="class_qwt_plain_text_engine.html#ac5cedc0d644433b2ff14b3740996eb7d">QwtPlainTextEngine</a>.</p>
  249. </div>
  250. </div>
  251. <a id="a98316f2f6f4f50216ceffbe9babe2901"></a>
  252. <h2 class="memtitle"><span class="permalink"><a href="#a98316f2f6f4f50216ceffbe9babe2901">&#9670;&nbsp;</a></span>mightRender()</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">virtual bool QwtTextEngine::mightRender </td>
  261. <td>(</td>
  262. <td class="paramtype">const QString &amp;&#160;</td>
  263. <td class="paramname"><em>text</em></td><td>)</td>
  264. <td> const</td>
  265. </tr>
  266. </table>
  267. </td>
  268. <td class="mlabels-right">
  269. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  270. </tr>
  271. </table>
  272. </div><div class="memdoc">
  273. <p>Test if a string can be rendered by this text engine</p>
  274. <dl class="params"><dt>Parameters</dt><dd>
  275. <table class="params">
  276. <tr><td class="paramname">text</td><td>Text to be tested </td></tr>
  277. </table>
  278. </dd>
  279. </dl>
  280. <dl class="section return"><dt>Returns</dt><dd>true, if it can be rendered </dd></dl>
  281. <p>Implemented in <a class="el" href="class_qwt_math_m_l_text_engine.html#adbb0723b8a7f8ab9ff612d062d5f053b">QwtMathMLTextEngine</a>, <a class="el" href="class_qwt_rich_text_engine.html#a597cd0341d44bc364dab2f5e70cd0674">QwtRichTextEngine</a>, and <a class="el" href="class_qwt_plain_text_engine.html#ad210b32f1218447fcff3dafafd0a9fb9">QwtPlainTextEngine</a>.</p>
  282. </div>
  283. </div>
  284. <a id="a83c8d3dc590b9914e9216c01e78e0838"></a>
  285. <h2 class="memtitle"><span class="permalink"><a href="#a83c8d3dc590b9914e9216c01e78e0838">&#9670;&nbsp;</a></span>textMargins()</h2>
  286. <div class="memitem">
  287. <div class="memproto">
  288. <table class="mlabels">
  289. <tr>
  290. <td class="mlabels-left">
  291. <table class="memname">
  292. <tr>
  293. <td class="memname">virtual void QwtTextEngine::textMargins </td>
  294. <td>(</td>
  295. <td class="paramtype">const QFont &amp;&#160;</td>
  296. <td class="paramname"><em>font</em>, </td>
  297. </tr>
  298. <tr>
  299. <td class="paramkey"></td>
  300. <td></td>
  301. <td class="paramtype">const QString &amp;&#160;</td>
  302. <td class="paramname"><em>text</em>, </td>
  303. </tr>
  304. <tr>
  305. <td class="paramkey"></td>
  306. <td></td>
  307. <td class="paramtype">double &amp;&#160;</td>
  308. <td class="paramname"><em>left</em>, </td>
  309. </tr>
  310. <tr>
  311. <td class="paramkey"></td>
  312. <td></td>
  313. <td class="paramtype">double &amp;&#160;</td>
  314. <td class="paramname"><em>right</em>, </td>
  315. </tr>
  316. <tr>
  317. <td class="paramkey"></td>
  318. <td></td>
  319. <td class="paramtype">double &amp;&#160;</td>
  320. <td class="paramname"><em>top</em>, </td>
  321. </tr>
  322. <tr>
  323. <td class="paramkey"></td>
  324. <td></td>
  325. <td class="paramtype">double &amp;&#160;</td>
  326. <td class="paramname"><em>bottom</em>&#160;</td>
  327. </tr>
  328. <tr>
  329. <td></td>
  330. <td>)</td>
  331. <td></td><td> const</td>
  332. </tr>
  333. </table>
  334. </td>
  335. <td class="mlabels-right">
  336. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  337. </tr>
  338. </table>
  339. </div><div class="memdoc">
  340. <p>Return margins around the texts</p>
  341. <p>The textSize might include margins around the text, like QFontMetrics::descent(). In situations where texts need to be aligned in detail, knowing these margins might improve the layout calculations.</p>
  342. <dl class="params"><dt>Parameters</dt><dd>
  343. <table class="params">
  344. <tr><td class="paramname">font</td><td>Font of the text </td></tr>
  345. <tr><td class="paramname">text</td><td>Text to be rendered </td></tr>
  346. <tr><td class="paramname">left</td><td>Return value for the left margin </td></tr>
  347. <tr><td class="paramname">right</td><td>Return value for the right margin </td></tr>
  348. <tr><td class="paramname">top</td><td>Return value for the top margin </td></tr>
  349. <tr><td class="paramname">bottom</td><td>Return value for the bottom margin </td></tr>
  350. </table>
  351. </dd>
  352. </dl>
  353. <p>Implemented in <a class="el" href="class_qwt_math_m_l_text_engine.html#a7ae2e9d5cd4f841baf746652aa24042c">QwtMathMLTextEngine</a>, <a class="el" href="class_qwt_rich_text_engine.html#a8aaca45963ed5ab76bfe6161e0ebc964">QwtRichTextEngine</a>, and <a class="el" href="class_qwt_plain_text_engine.html#a4ed2a4aa7574f1badc88a3118a0de502">QwtPlainTextEngine</a>.</p>
  354. </div>
  355. </div>
  356. <a id="ad9382cc8ff22c6b3e448fce566a76178"></a>
  357. <h2 class="memtitle"><span class="permalink"><a href="#ad9382cc8ff22c6b3e448fce566a76178">&#9670;&nbsp;</a></span>textSize()</h2>
  358. <div class="memitem">
  359. <div class="memproto">
  360. <table class="mlabels">
  361. <tr>
  362. <td class="mlabels-left">
  363. <table class="memname">
  364. <tr>
  365. <td class="memname">virtual QSizeF QwtTextEngine::textSize </td>
  366. <td>(</td>
  367. <td class="paramtype">const QFont &amp;&#160;</td>
  368. <td class="paramname"><em>font</em>, </td>
  369. </tr>
  370. <tr>
  371. <td class="paramkey"></td>
  372. <td></td>
  373. <td class="paramtype">int&#160;</td>
  374. <td class="paramname"><em>flags</em>, </td>
  375. </tr>
  376. <tr>
  377. <td class="paramkey"></td>
  378. <td></td>
  379. <td class="paramtype">const QString &amp;&#160;</td>
  380. <td class="paramname"><em>text</em>&#160;</td>
  381. </tr>
  382. <tr>
  383. <td></td>
  384. <td>)</td>
  385. <td></td><td> const</td>
  386. </tr>
  387. </table>
  388. </td>
  389. <td class="mlabels-right">
  390. <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
  391. </tr>
  392. </table>
  393. </div><div class="memdoc">
  394. <p>Returns the size, that is needed to render text</p>
  395. <dl class="params"><dt>Parameters</dt><dd>
  396. <table class="params">
  397. <tr><td class="paramname">font</td><td>Font of the text </td></tr>
  398. <tr><td class="paramname">flags</td><td>Bitwise OR of the flags like in for QPainter::drawText </td></tr>
  399. <tr><td class="paramname">text</td><td>Text to be rendered</td></tr>
  400. </table>
  401. </dd>
  402. </dl>
  403. <dl class="section return"><dt>Returns</dt><dd>Calculated size </dd></dl>
  404. <p>Implemented in <a class="el" href="class_qwt_math_m_l_text_engine.html#a82ca1c89927b32a32829680e4be63001">QwtMathMLTextEngine</a>, <a class="el" href="class_qwt_rich_text_engine.html#ad644bf615cf2f27bc51e941d9bdcb509">QwtRichTextEngine</a>, and <a class="el" href="class_qwt_plain_text_engine.html#ab4937c7b9d44aa4d1cc5dcd1d7740b3b">QwtPlainTextEngine</a>.</p>
  405. </div>
  406. </div>
  407. </div><!-- contents -->
  408. </div><!-- doc-content -->
  409. <!-- start footer part -->
  410. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  411. <ul>
  412. <li class="navelem"><a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a></li>
  413. <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>
  414. </ul>
  415. </div>
  416. </body>
  417. </html>