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

📄 class_qwt_text.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    <td>      &nbsp;    </td>    <td><p>Constructor<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>&nbsp;</td><td>Text content </td></tr>    <tr><td valign="top"></td><td valign="top"><em>textFormat</em>&nbsp;</td><td>Text format </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00180">180</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__text_8cpp-source.html#l00640">textEngine()</a>.    </td>  </tr></table><a class="anchor" name="f88b42733c420574fa76b2d58b965313"></a><!-- doxytag: member="QwtText::QwtText" ref="f88b42733c420574fa76b2d58b965313" args="(const QwtText &amp;)" --><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">QwtText::QwtText           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_text.html">QwtText</a> &amp;&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>Copy constructor. <p><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00190">190</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__text_8h-source.html#l00191">d_data</a>, and <a class="el" href="qwt__text_8h-source.html#l00194">d_layoutCache</a>.    </td>  </tr></table><a class="anchor" name="ba243ac11b91979ad3f2ee7d3c700195"></a><!-- doxytag: member="QwtText::~QwtText" ref="ba243ac11b91979ad3f2ee7d3c700195" 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">QwtText::~QwtText           </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>Destructor. <p><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00200">200</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="46bb4836482e4fe554f5079871343ba6"></a><!-- doxytag: member="QwtText::backgroundBrush" ref="46bb4836482e4fe554f5079871343ba6" args="() 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">QBrush QwtText::backgroundBrush           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>Background brush </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#f016a747b234aede9f0cbbeb06ed2802">setBackgroundBrush</a>, <a class="el" href="class_qwt_text.html#f1aecfe1c9321dad4b80465f6d1a0649">backgroundPen</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00387">387</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.    </td>  </tr></table><a class="anchor" name="f1aecfe1c9321dad4b80465f6d1a0649"></a><!-- doxytag: member="QwtText::backgroundPen" ref="f1aecfe1c9321dad4b80465f6d1a0649" args="() 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">QPen QwtText::backgroundPen           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Returns:</b></dt><dd>Background pen </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_text.html#6532e0c5cdcfc16cd007427f3ddf60fb">setBackgroundPen</a>, <a class="el" href="class_qwt_text.html#46bb4836482e4fe554f5079871343ba6">backgroundBrush</a> </dd></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00366">366</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.    </td>  </tr></table><a class="anchor" name="8904020d2a906c4c66d8515ba47820fe"></a><!-- doxytag: member="QwtText::color" ref="8904020d2a906c4c66d8515ba47820fe" args="() 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">QColor QwtText::color           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return the pen color, used for painting the text. <p><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00330">330</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.    </td>  </tr></table><a class="anchor" name="3907eb112ff2259adbaad4c433178354"></a><!-- doxytag: member="QwtText::draw" ref="3907eb112ff2259adbaad4c433178354" args="(QPainter *painter, const QRect &amp;rect) 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 QwtText::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"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw a text into a 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>Rectangle </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00564">564</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>References <a class="el" href="qwt__painter_8cpp-source.html#l00176">QwtPainter::drawRect()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00296">font()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00160">QwtPainter::metricsMap()</a>, <a class="el" href="qwt__layout__metrics_8h-source.html#l00103">QwtMetricsMap::screenToLayoutX()</a>, and <a class="el" href="qwt__layout__metrics_8h-source.html#l00123">QwtMetricsMap::screenToLayoutY()</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00354">QwtLegendItem::drawItem()</a>, <a class="el" href="qwt__scale__draw_8cpp-source.html#l00612">QwtScaleDraw::drawLabel()</a>, <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00162">QwtRoundScaleDraw::drawLabel()</a>, <a class="el" href="qwt__scale__widget_8cpp-source.html#l00622">QwtScaleWidget::drawTitle()</a>, and <a class="el" href="qwt__plot__print_8cpp-source.html#l00243">QwtPlot::printTitle()</a>.    </td>  </tr></table><a class="anchor" name="76db41eeae98fbfa0933a38328a240ac"></a><!-- doxytag: member="QwtText::font" ref="76db41eeae98fbfa0933a38328a240ac" args="() 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">QFont QwtText::font           </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> const</td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return the font. <p><p>Definition at line <a class="el" href="qwt__text_8cpp-source.html#l00296">296</a> of file <a class="el" href="qwt__text_8cpp-source.html">qwt_text.cpp</a>.<p>Referenced by <a class="el" href="qwt__text_8cpp-source.html#l00564">draw()</a>, <a class="el" href="qwt__text_8cpp-source.html#l00458">heightForWidth()</a>, and <a class="el" href="qwt__text_8cpp-source.html#l00510">textSize()</a>.    </td>  </tr></table><a class="anchor" name="374cc5fd4e94567cef8f94dd63989994"></a><!-- doxytag: member="QwtText::heightForWidth" ref="374cc5fd4e94567cef8f94dd63989994" args="(int width, const QFont &amp;=QFont()) 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 QwtText::heightForWidth           </td>

⌨️ 快捷键说明

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