Skip to content

Commit 490c528

Browse files
committed
Windows: add some defines from WinUser.h
Add the windows message queue status flags macros. This should allow the use of the macros when writing Windows code.
1 parent a5f0dbc commit 490c528

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

stdlib/public/Windows/WinSDK.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@ public var FIONBIO: Int32 {
7777
public var CW_USEDEFAULT: Int32 {
7878
Int32(bitPattern: 2147483648)
7979
}
80+
81+
public var QS_MOUSE: UINT {
82+
UINT(QS_MOUSEMOVE | QS_MOUSEBUTTON)
83+
}
84+
public var QS_INPUT: UINT {
85+
QS_MOUSE | UINT(QS_KEY | QS_RAWINPUT | QS_TOUCH | QS_POINTER)
86+
}
87+
public var QS_ALLEVENTS: UINT {
88+
QS_INPUT | UINT(QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY)
89+
}
90+
public var QS_ALLINPUT: UINT {
91+
QS_INPUT | UINT(QS_POSTMESSAGE | QS_TIMER | QS_PAINT | QS_HOTKEY | QS_SENDMESSAGE)
92+
}
93+
8094
public var WS_OVERLAPPEDWINDOW: UINT {
8195
UINT(WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)
8296
}

0 commit comments

Comments
 (0)