Function webrender::util::extract_inner_rect_k

source ·
pub fn extract_inner_rect_k<U>(
    rect: &Box2D<f32, U>,
    radii: &BorderRadius,
    k: f32,
) -> Option<Box2D<f32, U>>
Expand description

Return an aligned rectangle that is inside the clip region and doesn’t intersect any of the bounding rectangles of the rounded corners, with a specific k factor to control how much of the rounded corner is included.