Skip to content

Commit

Permalink
Merge pull request #26 from Mzying2001/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Mzying2001 authored Mar 31, 2024
2 parents 30dc254 + 78f5340 commit 75fff59
Show file tree
Hide file tree
Showing 168 changed files with 8,684 additions and 4,008 deletions.
180 changes: 180 additions & 0 deletions docs/_hot_key_control_8h_source.html

Large diffs are not rendered by default.

274 changes: 274 additions & 0 deletions docs/_image_list_8h_source.html

Large diffs are not rendered by default.

33 changes: 28 additions & 5 deletions docs/_keys_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,34 @@
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> MouseX2 = MK_XBUTTON2, <span class="comment">// The second X button is down.</span></div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> };</div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> </div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> <span class="keywordtype">int</span> operator&amp;(MouseKey left, MouseKey right)</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> {</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">return</span> int(left) &amp; int(right);</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> }</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span>}</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keyword">enum class</span> HotKeyModifier {</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> None = 0, <span class="comment">// 无按键</span></div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> Shift = <span class="comment">/*HOTKEYF_SHIFT*/</span> 0x1, <span class="comment">// Alt键</span></div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> Ctrl = <span class="comment">/*HOTKEYF_CONTROL*/</span> 0x2, <span class="comment">// Ctrl键</span></div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> Alt = <span class="comment">/*HOTKEYF_ALT*/</span> 0x4, <span class="comment">// 扩展键</span></div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> Ext = <span class="comment">/*HOTKEYF_EXT*/</span> 0x8, <span class="comment">// Shift键</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> };</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> </div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> MouseKey operator&amp;(MouseKey left, MouseKey right)</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> {</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="keywordflow">return</span> MouseKey(<span class="keywordtype">int</span>(left) &amp; <span class="keywordtype">int</span>(right));</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> }</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> </div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> MouseKey operator|(MouseKey left, MouseKey right)</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> {</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <span class="keywordflow">return</span> MouseKey(<span class="keywordtype">int</span>(left) | <span class="keywordtype">int</span>(right));</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> }</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> </div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> HotKeyModifier operator&amp;(HotKeyModifier left, HotKeyModifier right)</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> {</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">return</span> HotKeyModifier(<span class="keywordtype">int</span>(left) &amp; <span class="keywordtype">int</span>(right));</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> }</div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> </div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keyword">inline</span> <span class="keyword">constexpr</span> HotKeyModifier operator|(HotKeyModifier left, HotKeyModifier right)</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> {</div>
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> <span class="keywordflow">return</span> HotKeyModifier(<span class="keywordtype">int</span>(left) | <span class="keywordtype">int</span>(right));</div>
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> }</div>
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span>}</div>
<div class="ttc" id="aclasssw_1_1_dictionary_html"><div class="ttname"><a href="classsw_1_1_dictionary.html">sw::Dictionary</a></div><div class="ttdoc">字典类,内部维护了一个指向std::map的智能指针</div><div class="ttdef"><b>Definition</b> Dictionary.h:24</div></div>
<div class="ttc" id="astructsw_1_1_key_flags_html"><div class="ttname"><a href="structsw_1_1_key_flags.html">sw::KeyFlags</a></div><div class="ttdoc">https://learn.microsoft.com/en-us/windows/win32/inputdev/about-keyboard-input#keystroke-message-flags</div><div class="ttdef"><b>Definition</b> Keys.h:11</div></div>
</div><!-- fragment --></div><!-- contents -->
Expand Down
Loading

0 comments on commit 75fff59

Please sign in to comment.