LavaUI docs GitHub

struct SceneNodeFlags

Swift

struct SceneNodeFlags

Bits in a beginNode command's color field. Mirrors canvas::SceneNodeFlags.

Sources/LavaUI/DrawList.swift:94

Constructors

init(rawValue: UInt32)

Creates a flag set from its bits.

Sources/LavaUI/DrawList.swift:98

Properties

static let absoluteCoordinates: SceneNodeFlags

Commands inside the node use LavaUI's window-space coordinates. The renderer applies only retained transforms, not the node origin again.

Sources/LavaUI/DrawList.swift:113

static let clip: SceneNodeFlags

Clip children to the node's viewport, moving with the node.

Sources/LavaUI/DrawList.swift:101

static let hitTest: SceneNodeFlags

Report hover for this node even when it declares no hover tint, so a hover callback can hear about it.

Sources/LavaUI/DrawList.swift:110

static let hoverSnap: SceneNodeFlags

Snap the hover tint off instead of easing it. Dense full-width rows need this; a button does not. See kSceneNodeHoverSnap.

Sources/LavaUI/DrawList.swift:119

let rawValue: UInt32

The flag bits.

Sources/LavaUI/DrawList.swift:96

static let scrollX: SceneNodeFlags

The renderer owns a horizontal scroll offset for this node. See scrollY.

Sources/LavaUI/DrawList.swift:107

static let scrollY: SceneNodeFlags

The renderer owns a vertical scroll offset for this node — wheel events inside it move the subtree without the producer hearing about it, or being woken to redraw.

Sources/LavaUI/DrawList.swift:105

static let wheel: SceneNodeFlags

This node handles the wheel itself, so the renderer must not scroll an enclosing container on its behalf. See ScrollRouter.

Sources/LavaUI/DrawList.swift:116