RootOverlayPaintScope

Collects screen-coordinate commands for one root overlay.

size is the complete root viewport and anchorBounds identifies the placed node requesting the overlay. The scope has the same callback lifetime, owner-thread, and failure contract as PaintScope.

Properties

Link copied to clipboard
abstract val anchorBounds: IntRect

Placed half-open bounds of the requesting node in root coordinates.

Link copied to clipboard
abstract val size: IntSize

The node's measured size.

Functions

Link copied to clipboard
abstract fun blitImage(image: DrawImage, source: IntRect, localDestination: IntRect)

Adds a local image blit command.

Link copied to clipboard
abstract fun drawPlatform(command: PlatformDrawCommand, localBounds: IntRect)

Adds one opaque platform draw command at a local half-open rectangle.

Link copied to clipboard
abstract fun fillRectangle(localBounds: IntRect, color: ArgbColor)

Adds a local fill command.

Link copied to clipboard
open fun sampledImage(image: DrawImage, source: FloatRect, localDestination: FloatRect, tint: ArgbColor = ArgbColor(-1), alphaCutoff: Float = 0.1f)

Adds an image sampled at the final physical pixel centers without rounding its geometry to logical pixels.

open fun sampledImage(image: DrawImage, source: FloatRect, localDestination: FloatRect, orientation: SampledImageOrientation, tint: ArgbColor = ArgbColor(-1), alphaCutoff: Float = 0.1f)

Adds a sampled image with explicit source-axis directions while keeping both rectangles normalized.

Link copied to clipboard
open fun withClip(localBounds: IntRect, content: () -> Unit)

Clips commands emitted during content without changing their local geometry or sampling coordinates.