← back to roto on ba3a.dev

WindowSettings

@Serializable
data class WindowSettings(val width: Int, val height: Int, val x: Int, val y: Int, val maximised: Boolean = false)

Where the app window was left: its size and position on screen, and whether it was maximised.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, x: Int, y: Int, maximised: Boolean = false)

Properties

Link copied to clipboard
val height: Int

the window height in pixels; positive

Link copied to clipboard

whether the window was maximised

Link copied to clipboard
val width: Int

the window width in pixels; positive

Link copied to clipboard
val x: Int

the window's left edge on screen; may be negative on a multi-monitor desktop

Link copied to clipboard
val y: Int

the window's top edge on screen; may be negative on a multi-monitor desktop