Skip to main content

bg_clip_rect

Function bg_clip_rect 

Source
pub(super) fn bg_clip_rect(
    el: &RenderElement,
    x0_rect: i32,
    y0_rect: i32,
    x1_rect: i32,
    y1_rect: i32,
) -> (u32, u32, u32, u32)
Expand description

background-clip に基づき、背景の描画を制限すべき矩形(border-box 座標系)を返す。 border-box(既定)なら el の外形そのまま。