Window

interface Window(source)

Represents a window with configurable properties and behavior.

Inheritors

Properties

Link copied to clipboard
abstract val closed: Event<WindowEvent>

Window restored (from minimization) event

Link copied to clipboard
abstract var contentScale: Double
Link copied to clipboard
abstract val drop: Event<DropEvent>

Drop event, triggered when a file is dropped on the window

Link copied to clipboard
abstract val focused: Event<WindowEvent>

Window focused event, triggered when the window receives focus

Link copied to clipboard
abstract var hitTest: (Vector2) -> Hit?
Link copied to clipboard
abstract val minimized: Event<WindowEvent>

Window minimized event

Link copied to clipboard
abstract val moved: Event<WindowEvent>

Window moved event

Link copied to clipboard
Link copied to clipboard
abstract var position: Vector2

Window position

Link copied to clipboard
Link copied to clipboard
abstract var resizable: Boolean
Link copied to clipboard
abstract val restored: Event<WindowEvent>

Window restored (from minimization) event

Link copied to clipboard
abstract var size: Vector2
Link copied to clipboard
abstract val sized: Event<WindowEvent>

Window sized event

Link copied to clipboard
abstract var title: String
Link copied to clipboard
abstract val unfocused: Event<WindowEvent>

Window focused event, triggered when the window loses focus

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun fullscreen(mode: Fullscreen)

Toggles the window fullscreen mode based on the specified parameter.

Link copied to clipboard
abstract fun maximize()

Maximizes the window to occupy the full available screen space.

Link copied to clipboard
abstract fun minimize()

Minimizes the window.

Link copied to clipboard
abstract fun requestDraw()

Requests a redraw of the window's contents.

Link copied to clipboard
abstract fun requestFocus()

Requests focus for the window, making it the active window.