Skip to content

Commit 6d7d584

Browse files
committed
window.hwnd
1 parent 275e6bf commit 6d7d584

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/kotlin/uno/glfw/GlfwWindow.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,4 +451,7 @@ open class GlfwWindow(var handle: GlfwWindowHandle) {
451451
inline fun present() = swapBuffers()
452452

453453
fun requestAttention() = glfwRequestWindowAttention(handle)
454+
455+
val hwnd: HWND
456+
get() = GLFWNativeWin32.glfwGetWin32Window(handle)
454457
}

src/main/kotlin/uno/glfw/direct fields.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ inline val GLFWVidMode.blueBits: Int
1919
get() = GLFWVidMode.nblueBits(adr)
2020
inline val GLFWVidMode.refreshRate: Int
2121
get() = GLFWVidMode.nrefreshRate(adr)
22+
23+
24+
typealias HWND = Long

0 commit comments

Comments
 (0)