⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_qwt_math_m_l_text_engine.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>Qwt User&apos;s Guide: QwtMathMLTextEngine Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.6 --><div class="tabs">  <ul>    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>    <li id="current"><a href="classes.html"><span>Classes</span></a></li>    <li><a href="files.html"><span>Files</span></a></li>    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>  </ul></div><div class="tabs">  <ul>    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>  </ul></div><h1>QwtMathMLTextEngine Class Reference</h1><!-- doxytag: class="QwtMathMLTextEngine" --><!-- doxytag: inherits="QwtTextEngine" -->Inheritance diagram for QwtMathMLTextEngine:<p><center><img src="class_qwt_math_m_l_text_engine__inherit__graph.png" border="0" usemap="#_qwt_math_m_l_text_engine__inherit__map" alt="Inheritance graph"></center><map name="_qwt_math_m_l_text_engine__inherit__map"><area href="class_qwt_text_engine.html" shape="rect" coords="30,8,142,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for QwtMathMLTextEngine:<p><center><img src="class_qwt_math_m_l_text_engine__coll__graph.png" border="0" usemap="#_qwt_math_m_l_text_engine__coll__map" alt="Collaboration graph"></center><map name="_qwt_math_m_l_text_engine__coll__map"><area href="class_qwt_text_engine.html" shape="rect" coords="30,8,142,32" alt=""></map><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_math_m_l_text_engine-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>Text Engine for the MathML renderer of the Qt solutions package. <p>The Qt Solution package includes a renderer for MathML <a href="http://www.trolltech.com/products/qt/addon/solutions/catalog/4/Widgets/qtmmlwidget">http://www.trolltech.com/products/qt/addon/solutions/catalog/4/Widgets/qtmmlwidget</a> that is available for owners of a commercial Qt license. You need a version &gt;= 2.1, that is only available for Qt4.<p>To enable MathML support the following code needs to be added to the application: <div class="fragment"><pre class="fragment">#include &lt;qwt_mathml_text_engine.h&gt;QwtText::setTextEngine(QwtText::MathMLText, new QwtMathMLTextEngine());  </pre></div><p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text_engine.html">QwtTextEngine</a>, <a class="el" href="class_qwt_text.html#ef6a1e71b1feba3116ce69f6c9de70ad">QwtText::setTextEngine</a> </dd></dl><dl compact><dt><b>Warning:</b></dt><dd>Unfortunately the MathML renderer doesn't support rotating of texts. </dd></dl><p><p>Definition at line <a class="el" href="qwt__mathml__text__engine_8h-source.html#l00039">39</a> of file <a class="el" href="qwt__mathml__text__engine_8h-source.html">qwt_mathml_text_engine.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#f88b085974808e0497d120044672f721">QwtMathMLTextEngine</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#864d4265a7621e7389b21d419e6503ff">~QwtMathMLTextEngine</a> ()</td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#2af5e9efb10eee9c28cce50699cdfdab">heightForWidth</a> (const QFont &amp;font, int flags, const QString &amp;text, int width) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#ecb16b442a1ff15418dc31860e11c27b">textSize</a> (const QFont &amp;font, int flags, const QString &amp;text) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#476c19642bf2c69a1abf0021547a1d7e">draw</a> (QPainter *painter, const QRect &amp;rect, int flags, const QString &amp;text) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#59ca5842c32fd12cfd2aeeef5c985600">mightRender</a> (const QString &amp;) const </td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_math_m_l_text_engine.html#21ae25c70e4ff79cde60072e4bd75a29">textMargins</a> (const QFont &amp;, const QString &amp;, int &amp;left, int &amp;right, int &amp;top, int &amp;bottom) const </td></tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="f88b085974808e0497d120044672f721"></a><!-- doxytag: member="QwtMathMLTextEngine::QwtMathMLTextEngine" ref="f88b085974808e0497d120044672f721" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QwtMathMLTextEngine::QwtMathMLTextEngine           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor. <p><p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00022">22</a> of file <a class="el" href="qwt__mathml__text__engine_8cpp-source.html">qwt_mathml_text_engine.cpp</a>.    </td>  </tr></table><a class="anchor" name="864d4265a7621e7389b21d419e6503ff"></a><!-- doxytag: member="QwtMathMLTextEngine::~QwtMathMLTextEngine" ref="864d4265a7621e7389b21d419e6503ff" args="()" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">QwtMathMLTextEngine::~QwtMathMLTextEngine           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Destructor. <p><p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00027">27</a> of file <a class="el" href="qwt__mathml__text__engine_8cpp-source.html">qwt_mathml_text_engine.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="476c19642bf2c69a1abf0021547a1d7e"></a><!-- doxytag: member="QwtMathMLTextEngine::draw" ref="476c19642bf2c69a1abf0021547a1d7e" args="(QPainter *painter, const QRect &amp;rect, int flags, const QString &amp;text) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">void QwtMathMLTextEngine::draw           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>painter</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QRect &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>rect</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>flags</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QString &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>text</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the text in a clipping rectangle<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>painter</em>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>rect</em>&nbsp;</td><td>Clipping rectangle </td></tr>    <tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>Bitwise OR of the flags like in for QPainter::drawText </td></tr>    <tr><td valign="top"></td><td valign="top"><em>text</em>&nbsp;</td><td>Text to be rendered </td></tr>  </table></dl><p>Implements <a class="el" href="class_qwt_text_engine.html#cf750dd01aa35f5c9fc836460c30d663">QwtTextEngine</a>.<p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00097">97</a> of file <a class="el" href="qwt__mathml__text__engine_8cpp-source.html">qwt_mathml_text_engine.cpp</a>.    </td>  </tr></table><a class="anchor" name="2af5e9efb10eee9c28cce50699cdfdab"></a><!-- doxytag: member="QwtMathMLTextEngine::heightForWidth" ref="2af5e9efb10eee9c28cce50699cdfdab" args="(const QFont &amp;font, int flags, const QString &amp;text, int width) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int QwtMathMLTextEngine::heightForWidth           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QFont &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>font</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>flags</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QString &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>text</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>width</em></td>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -