Expand description
Managing clipping state.
Structsยง
- Clip
Context - A context for managing clip stacks.
- Clip
Data ๐ - Clip
Frame ๐ - A frame containing clipping-relevant state for the root layer or a filter layer.
- Clip
State - State for managing clip paths across multiple viewports.
- Fill
Region ๐ - Overlap ๐
- An overlap between two regions.
- Path
Data Ref - 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.
- Strip
Region ๐ - Strip
State ๐ - The data of the current strip we are building.
Enumsยง
- Advance ๐
- Overlap
Relationship ๐ - 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 ๐