📄 class_qwt_math_m_l_text_engine.html
字号:
</tr> <tr> <td class="md"></td> <td class="md">) </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> </td> <td><p>Find the height for a given width<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>font</em> </td><td>Font of the text </td></tr> <tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Bitwise OR of the flags used like in QPainter::drawText </td></tr> <tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>Text to be rendered </td></tr> <tr><td valign="top"></td><td valign="top"><em>width</em> </td><td>Width</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Calculated height </dd></dl><p>Implements <a class="el" href="class_qwt_text_engine.html#ac1112e5b1005d020d596dd174bbabf6">QwtTextEngine</a>.<p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00041">41</a> of file <a class="el" href="qwt__mathml__text__engine_8cpp-source.html">qwt_mathml_text_engine.cpp</a>.<p>References <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00056">textSize()</a>. </td> </tr></table><a class="anchor" name="59ca5842c32fd12cfd2aeeef5c985600"></a><!-- doxytag: member="QwtMathMLTextEngine::mightRender" ref="59ca5842c32fd12cfd2aeeef5c985600" args="(const QString &) 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">bool QwtMathMLTextEngine::mightRender </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QString & </td> <td class="mdname1" valign="top" nowrap> <em>text</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Test if a string can be rendered by <a class="el" href="class_qwt_math_m_l_text_engine.html">QwtMathMLTextEngine</a><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>text</em> </td><td>Text to be tested </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true, if text begins with "<math>". </dd></dl><p>Implements <a class="el" href="class_qwt_text_engine.html#98316f2f6f4f50216ceffbe9babe2901">QwtTextEngine</a>.<p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00131">131</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="21ae25c70e4ff79cde60072e4bd75a29"></a><!-- doxytag: member="QwtMathMLTextEngine::textMargins" ref="21ae25c70e4ff79cde60072e4bd75a29" args="(const QFont &, const QString &, int &left, int &right, int &top, int &bottom) 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::textMargins </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QFont & </td> <td class="mdname" nowrap>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QString & </td> <td class="mdname" nowrap>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>left</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>right</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>top</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int & </td> <td class="mdname" nowrap> <em>bottom</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </td> <td><p>Return margins around the texts<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>left</em> </td><td>Return 0 </td></tr> <tr><td valign="top"></td><td valign="top"><em>right</em> </td><td>Return 0 </td></tr> <tr><td valign="top"></td><td valign="top"><em>top</em> </td><td>Return 0 </td></tr> <tr><td valign="top"></td><td valign="top"><em>bottom</em> </td><td>Return 0 </td></tr> </table></dl><p>Implements <a class="el" href="class_qwt_text_engine.html#d84ebda640e65f23ebd758cd545a5b9a">QwtTextEngine</a>.<p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00083">83</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="ecb16b442a1ff15418dc31860e11c27b"></a><!-- doxytag: member="QwtMathMLTextEngine::textSize" ref="ecb16b442a1ff15418dc31860e11c27b" args="(const QFont &font, int flags, const QString &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">QSize QwtMathMLTextEngine::textSize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const QFont & </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 </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 & </td> <td class="mdname" nowrap> <em>text</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </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> </td> <td><p>Returns the size, that is needed to render text<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>font</em> </td><td>Font of the text </td></tr> <tr><td valign="top"></td><td valign="top"><em>flags</em> </td><td>Bitwise OR of the flags used like in QPainter::drawText </td></tr> <tr><td valign="top"></td><td valign="top"><em>text</em> </td><td>Text to be rendered</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Caluclated size </dd></dl><p>Implements <a class="el" href="class_qwt_text_engine.html#73214e1778edf6eb870fc96bf9c5091e">QwtTextEngine</a>.<p>Definition at line <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00056">56</a> of file <a class="el" href="qwt__mathml__text__engine_8cpp-source.html">qwt_mathml_text_engine.cpp</a>.<p>Referenced by <a class="el" href="qwt__mathml__text__engine_8cpp-source.html#l00041">heightForWidth()</a>. </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:24:17 2007 for Qwt User's Guide by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -