Scoop API

scoop:scoop.window:0.1.0

src/desktop_identity.scoop

Selected production source · src/desktop_identity.scoop

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