ApplicationWindow

@Composable
fun ApplicationWindow(title: String?, onClose: () -> Unit, modifier: Modifier = Modifier, styles: List<CssProvider> = emptyList(), decorated: Boolean = true, defaultHeight: Int = 0, defaultWidth: Int = 0, deletable: Boolean = true, fullscreen: Boolean = false, maximized: Boolean = false, handleMenubarAccel: Boolean = true, modal: Boolean = false, resizable: Boolean = true, init: ApplicationWindow.() -> Unit = {}, content: @Composable ApplicationWindowScope.() -> Unit)

Creates a org.gnome.adw.ApplicationWindow, a freeform application window.

Parameters

title

The title of the window.

onClose

Callback triggered when the window is closed.

modifier

Compose Modifier for layout and styling.

styles

A list of CssProvider used to style the window.

decorated

Whether the window should have a frame.

defaultHeight

The default height of the window.

defaultWidth

The default width of the window.

deletable

Whether the window frame should have a close button.

fullscreen

Whether the window is currently fullscreen.

maximized

Whether the window is currently maximized.

handleMenubarAccel

Whether the window frame should handle F10 for activating menu bars.

modal

Determines if the window is a modal.

resizable

Whether the window can be resized.

init

Function called when the component is initialized.

content

The composable content to display.