LavaUI docs

struct DragChipImage

Swift

struct DragChipImage

A drag chip: views laid out and emitted into a draw list of their own.

The arrays are canvas's own DrawCommand, GlyphInstance, MeshVertex and GradientDesc structs, as bytes. Whoever draws it compiles against the same draw_command.hpp, so this is the frame format rather than a new one — and a chip is a few kilobytes, sent once when the drag starts.

Chip-local: the list is emitted with the chip's top-left at 0,0, and width × height is what it laid out to, in pixels.

Sources/LavaUI/DragSource.swift:20

Properties

var byteCount: Int { get }

Not documented.

Sources/LavaUI/DragSource.swift:33

var commands: [UInt8]

Not documented.

Sources/LavaUI/DragSource.swift:23

var glyphs: [UInt8]

Not documented.

Sources/LavaUI/DragSource.swift:24

var gradients: [UInt8]

Not documented.

Sources/LavaUI/DragSource.swift:26

var height: UInt32

Not documented.

Sources/LavaUI/DragSource.swift:22

static let maxWireBytes: Int

Past this a chip is not sent, and the drag goes ahead with the cursor alone. Well under the control plane's per-message ceiling; a chip that big is a window, not a chip.

Sources/LavaUI/DragSource.swift:31

var meshVertices: [UInt8]

Not documented.

Sources/LavaUI/DragSource.swift:25

var width: UInt32

Not documented.

Sources/LavaUI/DragSource.swift:21