mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
missign cursorinfo
This commit is contained in:
@@ -287,6 +287,8 @@ foreign user32 {
|
|||||||
CreateRectRgnIndirect :: proc(lprect: ^RECT) -> HRGN ---
|
CreateRectRgnIndirect :: proc(lprect: ^RECT) -> HRGN ---
|
||||||
GetSystemMetricsForDpi :: proc(nIndex: int, dpi: UINT) -> int ---
|
GetSystemMetricsForDpi :: proc(nIndex: int, dpi: UINT) -> int ---
|
||||||
|
|
||||||
|
GetCursorInfo :: proc(pci: PCURSORINFO) -> BOOL ---
|
||||||
|
|
||||||
GetSystemMenu :: proc(hWnd: HWND, bRevert: BOOL) -> HMENU ---
|
GetSystemMenu :: proc(hWnd: HWND, bRevert: BOOL) -> HMENU ---
|
||||||
EnableMenuItem :: proc(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL ---
|
EnableMenuItem :: proc(hMenu: HMENU, uIDEnableItem: UINT, uEnable: UINT) -> BOOL ---
|
||||||
MenuItemFromPoint :: proc(hWnd: HWND, hMenu: HMENU, ptScreen: POINT) -> INT ---
|
MenuItemFromPoint :: proc(hWnd: HWND, hMenu: HMENU, ptScreen: POINT) -> INT ---
|
||||||
@@ -371,6 +373,10 @@ GET_XBUTTON_WPARAM :: #force_inline proc "contextless" (wParam: WPARAM) -> WORD
|
|||||||
return HIWORD(cast(DWORD)wParam)
|
return HIWORD(cast(DWORD)wParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GET_RAWINPUT_CODE_WPARAM :: #force_inline proc "contextless" (wParam: WPARAM) -> BYTE {
|
||||||
|
return BYTE(wParam) & 0xFF
|
||||||
|
}
|
||||||
|
|
||||||
MAKEINTRESOURCEW :: #force_inline proc "contextless" (#any_int i: int) -> LPWSTR {
|
MAKEINTRESOURCEW :: #force_inline proc "contextless" (#any_int i: int) -> LPWSTR {
|
||||||
return cast(LPWSTR)uintptr(WORD(i))
|
return cast(LPWSTR)uintptr(WORD(i))
|
||||||
}
|
}
|
||||||
@@ -569,6 +575,15 @@ WINDOWINFO :: struct {
|
|||||||
}
|
}
|
||||||
PWINDOWINFO :: ^WINDOWINFO
|
PWINDOWINFO :: ^WINDOWINFO
|
||||||
|
|
||||||
|
CURSORINFO :: struct {
|
||||||
|
cbSize: DWORD,
|
||||||
|
flags: DWORD,
|
||||||
|
hCursor: HCURSOR,
|
||||||
|
ptScreenPos: POINT,
|
||||||
|
}
|
||||||
|
PCURSORINFO :: ^CURSORINFO
|
||||||
|
|
||||||
|
|
||||||
DRAWTEXTPARAMS :: struct {
|
DRAWTEXTPARAMS :: struct {
|
||||||
cbSize: UINT,
|
cbSize: UINT,
|
||||||
iTabLength: INT,
|
iTabLength: INT,
|
||||||
|
|||||||
Reference in New Issue
Block a user