PersistedWorkspace

@Serializable
data class PersistedWorkspace(val fontSize: Int = 14, val windowWidth: Int? = null, val windowHeight: Int? = null, val windowX: Int? = null, val windowY: Int? = null, val selectedIndex: Int = -1, val documents: List<PersistedDocument> = emptyList(), val lookAndFeel: String? = null)

The whole persisted application state - shared shape and capture/restore logic every frontend (ide-swing, ide-web, ...) can build on, regardless of how each actually stores it (a file, localStorage, ...).

Constructors

Link copied to clipboard
constructor(fontSize: Int = 14, windowWidth: Int? = null, windowHeight: Int? = null, windowX: Int? = null, windowY: Int? = null, selectedIndex: Int = -1, documents: List<PersistedDocument> = emptyList(), lookAndFeel: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Display name of the look-and-feel active when last saved, e.g. "Nimbus", where the frontend has one; null keeps the frontend's default otherwise.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Window bounds, where the frontend has a window to speak of; null otherwise.

Link copied to clipboard
val windowX: Int?
Link copied to clipboard
val windowY: Int?