PushClip

data class PushClip(val bounds: IntRect) : DrawCommand(source)

Begins clipping subsequent drawing to DrawCommand.PushClip.bounds intersected with every active outer clip.

Clips are nested and use half-open tree coordinates. Empty bounds are valid and hide drawing until the matching PopClip.

Constructors

Link copied to clipboard
constructor(bounds: IntRect)

Properties

Link copied to clipboard

the clip rectangle in accumulated tree coordinates.