Skip to main content

damage_with_copies

Function damage_with_copies 

pub fn damage_with_copies(
    previous: &Scene,
    previous_parts: &SectionParts,
    current: &Scene,
    current_parts: &SectionParts,
    bounds: &mut DrawBounds,
) -> Result<SectionDamage, Unproven>
Expand description

damage for a host that presents the section over the pixels of the frame it compares with and can move them: a hinted part whose hint follows on and carries copies (DamageHint::copies) damages its rects only, and each copy comes with what the section draws over it and how its content composites, which the host must check before making it (and otherwise repaint where it lands, SectionDamage::without_copies). bounds bounds the draws of the section outside every bounded part.

ยงErrors

As damage.