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

📄 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">void QwtEventPattern::initKeyPattern           </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>Set default mouse patterns.<p><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_event_pattern.html#8fb57ceb9982d5583a1bf568e37d3007">KeyPatternCode</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00088">88</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>References <a class="el" href="qwt__event__pattern_8cpp-source.html#l00133">setKeyPattern()</a>.<p>Referenced by <a class="el" href="qwt__event__pattern_8cpp-source.html#l00019">QwtEventPattern()</a>.    </td>  </tr></table><a class="anchor" name="b885e0f266fd5b574ccbc6272225f486"></a><!-- doxytag: member="QwtEventPattern::initMousePattern" ref="b885e0f266fd5b574ccbc6272225f486" args="(int numButtons)" --><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::initMousePattern           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>numButtons</em>          </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>Set default mouse patterns, depending on the number of mouse buttons<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>numButtons</em>&nbsp;</td><td>Number of mouse buttons ( &lt;= 3 ) </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_event_pattern.html#f48dc808ac5e125eeed41a4c0285d1ea">MousePatternCode</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00038">38</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>References <a class="el" href="qwt__event__pattern_8cpp-source.html#l00115">setMousePattern()</a>.<p>Referenced by <a class="el" href="qwt__event__pattern_8cpp-source.html#l00019">QwtEventPattern()</a>.    </td>  </tr></table><a class="anchor" name="c2748e712cbfa8ce9eb12a3364b862de"></a><!-- doxytag: member="QwtEventPattern::keyMatch" ref="c2748e712cbfa8ce9eb12a3364b862de" args="(const KeyPattern &amp;, const QKeyEvent *) 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 QwtEventPattern::keyMatch           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_event_pattern_1_1_key_pattern.html">KeyPattern</a> &amp;&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 QKeyEvent *&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<code> [protected, virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Compare a key event with an event pattern. <p>A key event matches the pattern when both have the same key 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>Key event pattern </td></tr>    <tr><td valign="top"></td><td valign="top"><em>e</em>&nbsp;</td><td>Key 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#ab4d0d2780ed7b3de54502b05fb9f366">mouseMatch()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00272">272</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>References <a class="el" href="qwt__event__pattern_8h-source.html#l00160">QwtEventPattern::KeyPattern::key</a>, and <a class="el" href="qwt__event__pattern_8h-source.html#l00161">QwtEventPattern::KeyPattern::state</a>.    </td>  </tr></table><a class="anchor" name="0a727c4369d8535eed5695a2a76b7e79"></a><!-- doxytag: member="QwtEventPattern::keyMatch" ref="0a727c4369d8535eed5695a2a76b7e79" args="(uint pattern, const QKeyEvent *) 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 QwtEventPattern::keyMatch           </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 QKeyEvent *&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 key event with an event pattern. <p>A key event matches the pattern when both have the same key 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>Key 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#ab4d0d2780ed7b3de54502b05fb9f366">mouseMatch()</a> </dd></dl><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00248">248</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__plot__zoomer_8cpp-source.html#l00429">QwtPlotZoomer::widgetKeyPressEvent()</a>, and <a class="el" href="qwt__picker_8cpp-source.html#l00953">QwtPicker::widgetKeyPressEvent()</a>.    </td>  </tr></table><a class="anchor" name="169413c761883609ece9b61cdfb3f605"></a><!-- doxytag: member="QwtEventPattern::keyPattern" ref="169413c761883609ece9b61cdfb3f605" 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_key_pattern.html">QwtEventPattern::KeyPattern</a> &gt; &amp; QwtEventPattern::keyPattern           </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 Key patterns. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00175">175</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="b3704e66ac68612b8c52395cc8478533"></a><!-- doxytag: member="QwtEventPattern::keyPattern" ref="b3704e66ac68612b8c52395cc8478533" 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_key_pattern.html">QwtEventPattern::KeyPattern</a> &gt; &amp; QwtEventPattern::keyPattern           </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 key patterns. <p><p>Definition at line <a class="el" href="qwt__event__pattern_8cpp-source.html#l00163">163</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="091006f03b17d638a84ab0211e5c39de"></a><!-- doxytag: member="QwtEventPattern::mouseMatch" ref="091006f03b17d638a84ab0211e5c39de" args="(const MousePattern &amp;, const QMouseEvent *) 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 QwtEventPattern::mouseMatch           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="class_qwt_event_pattern_1_1_mouse_pattern.html">MousePattern</a> &amp;&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<code> [protected, virtual]</code></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>Mouse 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#l00217">217</a> of file <a class="el" href="qwt__event__pattern_8cpp-source.html">qwt_event_pattern.cpp</a>.<p>References <a class="el" href="qwt__event__pattern_8h-source.html#l00146">QwtEventPattern::MousePattern::button</a>, and <a class="el" href="qwt__event__pattern_8h-source.html#l00147">QwtEventPattern::MousePattern::state</a>.    </td>  </tr></table><a class="anchor" name="ab4d0d2780ed7b3de54502b05fb9f366"></a><!-- doxytag: member="QwtEventPattern::mouseMatch" ref="ab4d0d2780ed7b3de54502b05fb9f366" args="(uint pattern, const QMouseEvent *) const " --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">

⌨️ 快捷键说明

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