Skip to content

Commit 4e15d24

Browse files
committed
add functions necessary for window creation
1 parent e2c049f commit 4e15d24

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/bindings/windows.zig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,23 @@ pub extern "user32" fn CreateWindowExA(
203203
lpParam: ?LPVOID,
204204
) callconv(WINAPI) ?HWND;
205205

206+
pub extern "user32" fn ShowWindow(
207+
hwnd: HWND,
208+
nCmdShow: i32,
209+
) callconv(WINAPI) bool;
210+
211+
pub extern "user32" fn IsWindow(hwnd: ?HWND) callconv(WINAPI) bool;
212+
213+
pub extern "user32" fn SetWindowPos(
214+
hWnd: HWND,
215+
hWndInsertAfter: ?HWND,
216+
X: i32,
217+
Y: i32,
218+
cx: i32,
219+
cY: i32,
220+
uFlags: UINT,
221+
) callconv(WINAPI) bool;
222+
206223
pub extern "user32" fn DestroyWindow(hWnd: HWND) BOOL;
207224

208225
pub extern "user32" fn PostQuitMessage(nExitCode: i32) callconv(WINAPI) void;

0 commit comments

Comments
 (0)