📄 class_qwt_legend_item.html
字号:
<table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Destructor. <p><p>Definition at line <a class="el" href="qwt__legend__item_8cpp-source.html#l00108">108</a> of file <a class="el" href="qwt__legend__item_8cpp-source.html">qwt_legend_item.cpp</a>. </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="95fe5b1ec7fcfaa86fd9ec49a3bf23aa"></a><!-- doxytag: member="QwtLegendItem::checked" ref="95fe5b1ec7fcfaa86fd9ec49a3bf23aa" args="(bool)" --><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 QwtLegendItem::checked </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [signal]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Signal, when the legend item has been toggled. <p><p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00498">setDown()</a>. </td> </tr></table><a class="anchor" name="28c4837ec402725c87ecee6de558c956"></a><!-- doxytag: member="QwtLegendItem::clicked" ref="28c4837ec402725c87ecee6de558c956" 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">void QwtLegendItem::clicked </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [signal]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Signal, when the legend item has been clicked. <p><p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00498">setDown()</a>. </td> </tr></table><a class="anchor" name="3ca8da18f186d02388b99d9de79f40b5"></a><!-- doxytag: member="QwtLegendItem::curvePen" ref="3ca8da18f186d02388b99d9de79f40b5" 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">const QPen & QwtLegendItem::curvePen </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p><dl compact><dt><b>Returns:</b></dt><dd>The curve pen. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_legend_item.html#97803f16937bf1a392b7675fd7c9b503">setCurvePen()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__legend__item_8cpp-source.html#l00288">288</a> of file <a class="el" href="qwt__legend__item_8cpp-source.html">qwt_legend_item.cpp</a>. </td> </tr></table><a class="anchor" name="9cd64e5c5c04621e4684c3d75d3eadff"></a><!-- doxytag: member="QwtLegendItem::drawIdentifier" ref="9cd64e5c5c04621e4684c3d75d3eadff" args="(QPainter *, const QRect &) 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 QwtLegendItem::drawIdentifier </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QPainter * </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 & </td> <td class="mdname" nowrap> <em>rect</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>Paint the identifier to a given rect. <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> </td><td>Painter </td></tr> <tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Rect where to paint </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__legend__item_8cpp-source.html#l00298">298</a> of file <a class="el" href="qwt__legend__item_8cpp-source.html">qwt_legend_item.cpp</a>.<p>References <a class="el" href="qwt__painter_8cpp-source.html#l00437">QwtPainter::drawLine()</a>, <a class="el" href="qwt__painter_8cpp-source.html#l00160">QwtPainter::metricsMap()</a>, and <a class="el" href="qwt__layout__metrics_8cpp-source.html#l00147">QwtMetricsMap::screenToLayout()</a>.<p>Referenced by <a class="el" href="qwt__legend__item_8cpp-source.html#l00354">drawItem()</a>, and <a class="el" href="qwt__legend__item_8cpp-source.html#l00378">paintEvent()</a>. </td> </tr></table><a class="anchor" name="817a72727cfb906e25005962c369126a"></a><!-- doxytag: member="QwtLegendItem::drawItem" ref="817a72727cfb906e25005962c369126a" args="(QPainter *p, const QRect &) 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 QwtLegendItem::drawItem </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QPainter * </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 & </td> <td class="mdname" nowrap> <em>rect</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>Draw the legend item to a given rect. <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> </td><td>Painter </td></tr> <tr><td valign="top"></td><td valign="top"><em>rect</em> </td><td>Rect where to paint the button </td></tr> </table></dl><p>Definition at line <a class="el" href="qwt__legend__item_8cpp-source.html#l00354">354</a> of file <a class="el" href="qwt__legend__item_8cpp-source.html">qwt_legend_item.cpp</a>.<p>References <a class="el" href="qwt__text_8cpp-source.html#l00564">QwtText::draw()</a>, <a class="el" href="qwt__legend__item_8cpp-source.html#l00298">drawIdentifier()</a>, <a class="el" href="qwt__legend__item_8cpp-source.html#l00214">identifierWidth()</a>, <a class="el" href="qwt__text__label_8cpp-source.html#l00143">QwtTextLabel::margin()</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>, <a class="el" href="qwt__legend__item_8cpp-source.html#l00239">spacing()</a>, and <a class="el" href="qwt__text__label_8cpp-source.html#l00107">QwtTextLabel::text()</a>. </td> </tr></table><a class="anchor" name="fa466fbb3689353107872c6e133b5ddf"></a><!-- doxytag: member="QwtLegendItem::drawText" ref="fa466fbb3689353107872c6e133b5ddf" args="(QPainter *, const QRect &)" --><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 QwtLegendItem::drawText </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">QPainter * </td> <td class="mdname" nowrap>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const QRect & </td> <td class="mdname" nowrap></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Redraw the text. <p><p>Reimplemented from <a class="el" href="class_qwt_text_label.html#88491c6677985ca048a3ebc095940df3">QwtTextLabel</a>.<p>Definition at line <a class="el" href="qwt__legend__item_8cpp-source.html#l00535">535</a> of file <a class="el" href="qwt__legend__item_8cpp-source.html">qwt_legend_item.cpp</a>.<p>References <a class="el" href="qwt__text__label_8cpp-source.html#l00270">QwtTextLabel::drawText()</a>. </td> </tr></table><a class="anchor" name="53cd8956bab00b09be587da0bb7ca42b"></a><!-- doxytag: member="QwtLegendItem::identifierMode" ref="53cd8956bab00b09be587da0bb7ca42b" 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">int QwtLegendItem::identifierMode </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -