Skip to main content

Module clip

Module clip 

Source
Expand description

Managing clipping state.

Structsยง

ClipContext
A context for managing clip stacks.
ClipData ๐Ÿ”’
ClipFrame ๐Ÿ”’
A frame containing clipping-relevant state for the root layer or a filter layer.
ClipState
State for managing clip paths across multiple viewports.
FillRegion ๐Ÿ”’
Overlap ๐Ÿ”’
An overlap between two regions.
PathDataRef
Borrowed data of a stripped path.
RawClip ๐Ÿ”’
Raw data of a previously pushed clip path.
RowIterator ๐Ÿ”’
An iterator of strip and fill regions of a single strip row.
StripRegion ๐Ÿ”’
StripState ๐Ÿ”’
The data of the current strip we are building.

Enumsยง

Advance ๐Ÿ”’
OverlapRelationship ๐Ÿ”’
The relationship between two regions.
Region ๐Ÿ”’

Functionsยง

first_strip_at_or_after ๐Ÿ”’
flush_strip ๐Ÿ”’
intersect
Compute the sparse strips representation of a path that results from intersecting the two input paths. This can be used to implement clip paths.
intersect_impl ๐Ÿ”’
The implementation of the clipping algorithm using sparse strips. Conceptually, it is relatively simple: We iterate over each strip and fill region of the two paths in lock step and determine all overlaps between the two. For each overlap, we proceed depending on what kind of region we have in the first path and the second one.
should_create_new_strip ๐Ÿ”’
start_strip ๐Ÿ”’