Platform

data class Platform(val command: PlatformDrawCommand, val bounds: IntRect) : DrawCommand(source)

Preserves an opaque platform payload at one tree-coordinate rectangle.

Core retains DrawCommand.Platform.command by reference and does not interpret, copy, or clip it. A matching backend executes it in list order while applying the active PushClip stack. Other backends must reject the payload before producing partial output.

Throws

Constructors

Link copied to clipboard
constructor(command: PlatformDrawCommand, bounds: IntRect)

Properties

Link copied to clipboard

nonempty half-open tree-coordinate bounds.

Link copied to clipboard

immutable platform-owned payload.