Skip to main content

paint_focus_ring

Function paint_focus_ring 

Source
pub fn paint_focus_ring(
    canvas: &mut Canvas,
    bounds: Rect,
    shape: AvatarShape,
    rounded_radius_ratio: f32,
    offset: f32,
    width: f32,
    color: Color,
)
Expand description

Stroke a focus ring outside the avatar’s content bounds. Hugs the configured shape so a square avatar gets a square ring.