LavaUI docs GitHub

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:284

Constructors

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

Creates one control.

Sources/LavaUI/WindowControls.swift:294

Properties

var body: some View { get }

Not documented.

Sources/LavaUI/WindowControls.swift:299

var kind: WindowControlKind

Which control this is.

Sources/LavaUI/WindowControls.swift:286

var style: WindowControlsStyle

Size, colours and glyph behaviour.

Sources/LavaUI/WindowControls.swift:288