Skip to main content

layer_shadow_geometry

Function layer_shadow_geometry 

Source
pub fn layer_shadow_geometry(
    layer: &GraphicsLayer,
    transformed_bounds: Rect,
    caster: Option<RoundedCornerShape>,
    light: ShadowLight,
) -> LayerShadowGeometry
Expand description

The ambient and spot passes of layer’s shadow over transformed_bounds with the corners caster rounds it at, lit by light. Matches Skia’s SurfaceDrawContext::drawFastShadow and SkDrawShadowMetrics.