scoop:scoop.window:0.1.0
src/desktop_identity.scoop
Selected production source · src/desktop_identity.scoop
1
package scoop.window3
/** A library-assigned monitor identity, independent of native display identifiers. */4
public struct MonitorId(val value: Long) : Equals<MonitorId>, Hash {5
public override operator fun equals(other: MonitorId): Boolean = value == other.value6
public override fun hash(): Long = value.hash()7
}9
/** The application's behavior after its last window is actually destroyed. */10
public enum LastWindowPolicy {11
KeepRunning, Exit12
}14
/** Window-manager ordering requests. */15
public enum WindowLevel {16
Normal, AlwaysOnTop, AlwaysOnBottom17
}19
/** Why the system is asking the application to exit. */20
public enum ExitReason {21
User, System22
}24
/** Attention requests do not promise keyboard focus. */25
public enum AttentionKind {26
Informational, Critical, Cancel27
}29
/** Native titlebar buttons enabled by the application. */30
public struct WindowButtons(31
val close: Boolean = true,32
val minimize: Boolean = true,33
val maximize: Boolean = true34
)