Skip to main content

Module clip

Module clip 

Source
Expand description

Nested clip-rectangle stack with intersection and integer-scissor output.

The ClipStack tracks a hierarchy of rectangular clip regions. Pushing a new rect intersects it with the current top so the effective clip region is always the intersection of all active rects. The stack never panics on underflow — extra pops are silently ignored.

Structs§

ClipRect
An axis-aligned clip rectangle in logical (floating-point) coordinates.
ClipStack
A push-down stack of intersecting clip rectangles.