class_qwt_knob.html

来自「QWT5.01用于Qt开发的二维图形库程序」· HTML 代码 · 共 856 行 · 第 1/3 页

HTML
856
字号
        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the knob. <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>r</em>&nbsp;</td><td>Bounding rectangle of the knob (without scale) </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00189">189</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.<p>References <a class="el" href="qwt__knob_8cpp-source.html#l00405">drawMarker()</a>, and <a class="el" href="qwt__abstract__slider_8h-source.html#l00087">QwtAbstractSlider::isValid()</a>.    </td>  </tr></table><a class="anchor" name="e30bd1ac7e8ce05e7714433864af6e3a"></a><!-- doxytag: member="QwtKnob::drawMarker" ref="e30bd1ac7e8ce05e7714433864af6e3a" args="(QPainter *p, double arc, const QColor &amp;c)" --><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 QwtKnob::drawMarker           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPainter *&nbsp;</td>          <td class="mdname" nowrap> <em>p</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>double&nbsp;</td>          <td class="mdname" nowrap> <em>arc</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QColor &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>c</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Draw the marker at the knob's front. <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>p</em>&nbsp;</td><td>Painter </td></tr>    <tr><td valign="top"></td><td valign="top"><em>arc</em>&nbsp;</td><td>Angle of the marker </td></tr>    <tr><td valign="top"></td><td valign="top"><em>c</em>&nbsp;</td><td>Marker color </td></tr>  </table></dl><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00405">405</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.<p>Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00189">drawKnob()</a>.    </td>  </tr></table><a class="anchor" name="a9470eed740c7175c7ccfc4406eb5fc2"></a><!-- doxytag: member="QwtKnob::knobWidth" ref="a9470eed740c7175c7ccfc4406eb5fc2" 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 QwtKnob::knobWidth           </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 width of the knob. <p><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00459">459</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.    </td>  </tr></table><a class="anchor" name="03d014cd8d025bfeab6e004c53ab6e5b"></a><!-- doxytag: member="QwtKnob::minimumSizeHint" ref="03d014cd8d025bfeab6e004c53ab6e5b" 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">QSize QwtKnob::minimumSizeHint           </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<code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Return a minimum size hint. <p><dl compact><dt><b>Warning:</b></dt><dd>The return value of <a class="el" href="class_qwt_knob.html#03d014cd8d025bfeab6e004c53ab6e5b">QwtKnob::minimumSizeHint()</a> depends on the font and the scale. </dd></dl><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00536">536</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.<p>References <a class="el" href="qwt__round__scale__draw_8cpp-source.html#l00269">QwtRoundScaleDraw::extent()</a>, and <a class="el" href="qwt__knob_8cpp-source.html#l00170">scaleDraw()</a>.<p>Referenced by <a class="el" href="qwt__knob_8cpp-source.html#l00526">sizeHint()</a>.    </td>  </tr></table><a class="anchor" name="2b078ad2a814d2c464baec97d895b0b5"></a><!-- doxytag: member="QwtKnob::paintEvent" ref="2b078ad2a814d2c464baec97d895b0b5" args="(QPaintEvent *e)" --><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 QwtKnob::paintEvent           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QPaintEvent *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>e</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Repaint the knob. <p><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00362">362</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.<p>References <a class="el" href="qwt__knob_8cpp-source.html#l00382">draw()</a>.    </td>  </tr></table><a class="anchor" name="577c1fa6f26397ca356e679cce3a5c8c"></a><!-- doxytag: member="QwtKnob::resizeEvent" ref="577c1fa6f26397ca356e679cce3a5c8c" args="(QResizeEvent *e)" --><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 QwtKnob::resizeEvent           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">QResizeEvent *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>e</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Qt Resize Event. <p><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00331">331</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.    </td>  </tr></table><a class="anchor" name="3154037eec8c76c24577b8bf1d92b871"></a><!-- doxytag: member="QwtKnob::scaleDraw" ref="3154037eec8c76c24577b8bf1d92b871" 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"><a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * QwtKnob::scaleDraw           </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><dl compact><dt><b>Returns:</b></dt><dd>the scale draw of the knob </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#fea44f23da7f79a2b790178850c26edd">setScaleDraw()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00179">179</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.<p>References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00246">QwtAbstractScale::abstractScaleDraw()</a>.    </td>  </tr></table><a class="anchor" name="a9c4c23e20fc59b3ca2bfed9fe1e3719"></a><!-- doxytag: member="QwtKnob::scaleDraw" ref="a9c4c23e20fc59b3ca2bfed9fe1e3719" 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 <a class="el" href="class_qwt_round_scale_draw.html">QwtRoundScaleDraw</a> * QwtKnob::scaleDraw           </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>the scale draw of the knob </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_knob.html#fea44f23da7f79a2b790178850c26edd">setScaleDraw()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__knob_8cpp-source.html#l00170">170</a> of file <a class="el" href="qwt__knob_8cpp-source.html">qwt_knob.cpp</a>.<p>References <a class="el" href="qwt__abstract__scale_8cpp-source.html#l00246">QwtAbstractScale::abstractScaleDraw()</a>.<p>

⌨️ 快捷键说明

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