Skip to main content

paint_panel

Function paint_panel 

pub fn paint_panel(
    scene: &mut Scene,
    transform: Affine,
    rect: Rect,
    theme: &Theme,
    shadow_intensity: f32,
) -> RoundedRect
Expand description

Paint a floating ChromeRole::Panel body: its shadow at shadow_intensity, the panel_ground fill and the 1 px panel_border, all at the Panel radius. Returns the body’s outline for callers that clip their content to it.