NativeWindow

Functions

Link copied to clipboard
fun open(options: NativeWindowOptions = NativeWindowOptions(), onOpen: (NativeWindowScope) -> Unit = {}, onEvent: (NativeWindowEvent) -> Unit = {}, onClose: () -> Unit = {}, onFrame: (Long) -> Unit = {}, render: (canvas: Canvas, width: Int, height: Int, nanoTime: Long) -> Unit)
Link copied to clipboard
fun openChild(options: NativeWindowOptions = NativeWindowOptions(), onOpen: (NativeWindowScope) -> Unit = {}, onEvent: (NativeWindowEvent) -> Unit = {}, onClose: () -> Unit = {}, render: (canvas: Canvas, width: Int, height: Int, nanoTime: Long) -> Unit): NativeWindowScope

Creates an independent window in the running event loop. Closing it does not close the main window.

Link copied to clipboard
fun run(options: NativeWindowOptions = NativeWindowOptions(), onKey: (NativeWindowKey) -> Unit = {}, render: (canvas: Canvas, width: Int, height: Int, deltaSeconds: Float) -> Unit)