diff options
| author | Tail Wag Games <carterza@gmail.com> | 2022-02-17 00:58:38 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-17 00:58:38 -0600 |
| commit | 78eb388110087f3e5d77fa766f116a54bf42c25f (patch) | |
| tree | 2009043d66fc7af0d2037027c149013d9da50b5b /core/sys | |
| parent | 40e45368872bd75ebd63ea2199ee453d9677660a (diff) | |
Adding capture procedures to user32
Adding `GetCapture`, `SetCapture` and `ReleaseCapture` functions - https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setcapture
Diffstat (limited to 'core/sys')
| -rw-r--r-- | core/sys/win32/user32.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/sys/win32/user32.odin b/core/sys/win32/user32.odin index 593fdbb8e..fdf6a91f6 100644 --- a/core/sys/win32/user32.odin +++ b/core/sys/win32/user32.odin @@ -101,6 +101,9 @@ foreign user32 { } @(link_name="GetCursorPos") get_cursor_pos :: proc(p: ^Point) -> Bool --- @(link_name="SetCursorPos") set_cursor_pos :: proc(x, y: i32) -> Bool --- + @(link_name="GetCapure") get_capture :: proc(hwnd: Hwnd) -> Hwnd --- + @(link_name="SetCapture") set_capture :: proc(hwnd: Hwnd) -> Hwnd --- + @(link_name="ReleaseCapture") release_capture :: proc() -> Bool --- @(link_name="ScreenToClient") screen_to_client :: proc(h: Hwnd, p: ^Point) -> Bool --- @(link_name="ClientToScreen") client_to_screen :: proc(h: Hwnd, p: ^Point) -> Bool --- @(link_name="PostQuitMessage") post_quit_message :: proc(exit_code: i32) --- |