Skip to content

Commit dbc2c26

Browse files
committed
added fromHandle to circumvent kotlin-only inline class (@JvmStatic)
1 parent bf8ae01 commit dbc2c26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ open class GlfwWindow(var handle: GlfwWindowHandle) {
522522

523523
companion object {
524524
infix fun fromWin32Window(hwnd: HWND): GlfwWindow = GlfwWindow(glfw.attachWin32Window(hwnd))
525+
@JvmStatic
525526
fun from(handle: Long) = GlfwWindow(GlfwWindowHandle(handle))
526527
}
527528
}

0 commit comments

Comments
 (0)