Skip to main content

extract_clips

Function extract_clips 

Source
pub fn extract_clips(main: &mut World, render: &mut World)
Expand description

Extracts one ExtractedClipBox per clipping entity (carrying crate::input::Scroll or Style.overflow_x / overflow_y == Hidden). Each emission carries the containing rect plus the (start_order, end_order) range bracketing descendant paints so the renderer can push/pop a vello layer.

W2.3 wires this back into the default extract chain - the boxes feed crate::node_ir::Node::Clip wrappers inside crate::node_ir::transform_extracted_to_nodes.