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

📄 class_qwt_event_pattern.html

📁 QWT5.01用于Qt开发的二维图形库程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">bool QwtEventPattern::mouseMatch           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">uint&nbsp;</td>          <td class="mdname" nowrap> <em>pattern</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>const QMouseEvent *&nbsp;</td>          <td class="mdname" nowrap> <em>e</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>Compare a mouse event with an event pattern. <p>A mouse event matches the pattern when both have the same button value and in the state value the same key flags(Qt::KeyButtonMask) are set.<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>pattern</em>&nbsp;</td><td>Index of the event pattern </td></tr>    <tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>Mouse event </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>true if matches</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_event_pattern.html#0a727c4369d8535eed5695a2a76b7e79">keyMatch()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00193">193</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>Referenced by <a class="el" href="qwt__picker__machine_8cpp-source.html#l00300">QwtPickerPolygonMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00234">QwtPickerDragRectMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00145">QwtPickerClickRectMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00081">QwtPickerDragPointMachine::transition()</a>, <a class="el" href="qwt__picker__machine_8cpp-source.html#l00044">QwtPickerClickPointMachine::transition()</a>, and <a class="el" href="qwt__plot__zoomer_8cpp-source.html#l00406">QwtPlotZoomer::widgetMouseReleaseEvent()</a>.    </td>  </tr></table><a class="anchor" name="1da4b7b9287743c969fbb603220104d7"></a><!-- doxytag: member="QwtEventPattern::mousePattern" ref="1da4b7b9287743c969fbb603220104d7" 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">QwtArray&lt; <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">QwtEventPattern::MousePattern</a> &gt; &amp; QwtEventPattern::mousePattern           </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>Return ,ouse patterns. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00169">169</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.    </td>  </tr></table><a class="anchor" name="9619b8fa02b595abd93a9a0942bdce70"></a><!-- doxytag: member="QwtEventPattern::mousePattern" ref="9619b8fa02b595abd93a9a0942bdce70" 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 QwtArray&lt; <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">QwtEventPattern::MousePattern</a> &gt; &amp; QwtEventPattern::mousePattern           </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 mouse patterns. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00156">156</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.    </td>  </tr></table><a class="anchor" name="3f47d5f9adf63d2dd9b927423c3efeba"></a><!-- doxytag: member="QwtEventPattern::setKeyPattern" ref="3f47d5f9adf63d2dd9b927423c3efeba" args="(const QwtArray&lt; KeyPattern &gt; &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">void QwtEventPattern::setKeyPattern           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtArray&lt; <a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> &gt; &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>Change the key event patterns. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00149">149</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.    </td>  </tr></table><a class="anchor" name="2c3b52e4f470086fb6b883ff1f48b711"></a><!-- doxytag: member="QwtEventPattern::setKeyPattern" ref="2c3b52e4f470086fb6b883ff1f48b711" args="(uint pattern, int key, int state=Qt::NoButton)" --><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 QwtEventPattern::setKeyPattern           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">uint&nbsp;</td>          <td class="mdname" nowrap> <em>pattern</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>key</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>state</em> = <code>Qt::NoButton</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change one key pattern<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>pattern</em>&nbsp;</td><td>Index of the pattern </td></tr>    <tr><td valign="top"></td><td valign="top"><em>key</em>&nbsp;</td><td>Key </td></tr>    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>State</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd>QKeyEvent </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00133">133</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>Referenced by <a class="el" href="qwt__event__pattern_8cpp-source.html#l00088">initKeyPattern()</a>.    </td>  </tr></table><a class="anchor" name="1696c1c6eb8de3696296f8cd52bd2293"></a><!-- doxytag: member="QwtEventPattern::setMousePattern" ref="1696c1c6eb8de3696296f8cd52bd2293" args="(const QwtArray&lt; MousePattern &gt; &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">void QwtEventPattern::setMousePattern           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const QwtArray&lt; <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> &gt; &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>Change the mouse event patterns. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00143">143</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.    </td>  </tr></table><a class="anchor" name="c63fb935c777421794d669aa63faec68"></a><!-- doxytag: member="QwtEventPattern::setMousePattern" ref="c63fb935c777421794d669aa63faec68" args="(uint pattern, int button, int state=Qt::NoButton)" --><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 QwtEventPattern::setMousePattern           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">uint&nbsp;</td>          <td class="mdname" nowrap> <em>pattern</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>button</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>state</em> = <code>Qt::NoButton</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Change one mouse pattern<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>pattern</em>&nbsp;</td><td>Index of the pattern </td></tr>    <tr><td valign="top"></td><td valign="top"><em>button</em>&nbsp;</td><td>Button </td></tr>    <tr><td valign="top"></td><td valign="top"><em>state</em>&nbsp;</td><td>State</td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd>QMouseEvent </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00115">115</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>Referenced by <a class="el" href="qwt__event__pattern_8cpp-source.html#l00038">initMousePattern()</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 26 21:23:53 2007 for Qwt User's Guide by&nbsp;<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 + -