WindowGroup

interface WindowGroup(source)

Manages all windows for an application.

Properties

Link copied to clipboard
abstract val main: Window

The application's main window. All apps have a main window that is automatically created. Closing this main window will exit the app by default, unless mainWindowCloseBehavior has been set. If so, then it is invoked whenever the main window closes and can decide whether the app gets closed or not.

Link copied to clipboard
abstract var mainWindowCloseBehavior: () -> Unit?

Called whenever the main window is closed. Setting this to null will revert to the default close behavior: the app exists when the main window is closed.

Link copied to clipboard
abstract val windows: List<Window>

All windows currently open for the application.

Link copied to clipboard

Notified whenever windows changes.

Functions

Link copied to clipboard
abstract operator fun invoke(frameLess: Boolean = false, builder: Window.() -> Unit = {}): Window

Creates and shows a new window.