LavaUI docs

struct WindowControlButton

Swift

struct WindowControlButton

One window control, for chrome that places them apart — a close button in one corner of an overlay and nothing else at all.

Fires on release, and only if the pointer is still on it: dragging off a close button is how a user changes their mind, and a window that closed on the press would not let them.

Sources/LavaUI/WindowControls.swift:270

Constructors

init(_ kind: WindowControlKind, style: WindowControlsStyle = WindowControlsStyle())

Not documented.

Sources/LavaUI/WindowControls.swift:277

Properties

var body: some View { get }

Not documented.

Sources/LavaUI/WindowControls.swift:282

var kind: WindowControlKind

Not documented.

Sources/LavaUI/WindowControls.swift:271

var style: WindowControlsStyle

Not documented.

Sources/LavaUI/WindowControls.swift:272