Window

sealed interface Window(source)

Represents a single window in an application.

Properties

Link copied to clipboard
abstract var bounds: Rectangle

The window's location and size.

Link copied to clipboard

Triggered whenever the window is closed.

Link copied to clipboard
abstract val decorated: Boolean

Whether the window has chrome.

Link copied to clipboard
abstract val display: Display

The underlying display for holding Views in the window.

Link copied to clipboard
abstract var enabled: Boolean

Whether the window can be interacted with.

Link copied to clipboard
abstract var focusable: Boolean

Whether the window can be a focus owner.

Link copied to clipboard
open var height: Double

Vertical size of the window.

Link copied to clipboard
abstract val menuBar: MenuBar

Used to manipulate menu items for the window.

Link copied to clipboard
open var position: Point

Location of the window's top-left point.

Link copied to clipboard
abstract var resizable: Boolean

Whether the window's size can be changed.

Link copied to clipboard
open var size: Size

Width and height of the window.

Link copied to clipboard
abstract var title: String

Text shown in window's title section.

Link copied to clipboard

Whether the window tries to remain above all other windows.

Link copied to clipboard
open var width: Double

Horizontal size of the window.

Link copied to clipboard
open var x: Double

Location of the window's left edge.

Link copied to clipboard
open var y: Double

Location of the window's top edge.

Functions

Link copied to clipboard
abstract fun close()

Closes the window.

Link copied to clipboard
abstract fun popupMenu(at: Point, context: MenuCreationContext.() -> Unit): PopupMenu

Shows a pop-up menu for the window.