Package-level declarations
Types
Link copied to clipboard
class NativeWindowContext
Link copied to clipboard
Placement of a desktop window; minimization remains an independent state.
Link copied to clipboard
Desktop position in Compose dp. Wayland compositors control window positions themselves.
Functions
Link copied to clipboard
fun NativeWindow(options: NativeWindowOptions = NativeWindowOptions(title = "Compose Native"), onCloseRequest: () -> Boolean = { true }, content: @Composable NativeWindowScope.() -> Unit)
fun NativeWindow(options: NativeWindowOptions = NativeWindowOptions(title = "Compose Native"), onCloseRequest: () -> Boolean = { true }, onOpen: (NativeWindowScope) -> Unit, onEvent: (NativeWindowEvent) -> Unit = {}, onClose: () -> Unit = {}, applicationContent: @Composable () -> Unit? = null, content: @Composable NativeWindowScope.() -> Unit)
Link copied to clipboard
fun openNativeWindow(options: NativeWindowOptions = NativeWindowOptions(title = "Compose Native"), onCloseRequest: () -> Boolean = { true }, onOpen: (NativeWindowScope) -> Unit = {}, onEvent: (NativeWindowEvent) -> Unit = {}, onClose: () -> Unit = {}, content: @Composable NativeWindowScope.() -> Unit): AutoCloseable
Opens an independent Compose scene in the main NativeWindow event loop, without blocking it. Close the returned handle on the UI thread to dispose the scene; SDL releases its peer on the next loop turn. Window operations are available through onOpen and the content receiver. onClose runs after the scene has been disposed.
Link copied to clipboard