Skip to main content

intersect_rect

Function intersect_rect 

Source
pub fn intersect_rect(
    x: i32,
    y: i32,
    w: u32,
    h: u32,
    region: DamageRect,
) -> DamageRect
Expand description

The overlap between a rectangle and a damage region.