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
Functions
Link copied to clipboard
Adds one opaque platform draw command at a local half-open rectangle.
Link copied to clipboard
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.