Skip to main content

draw_focus_ring

Function draw_focus_ring 

Source
pub fn draw_focus_ring(
    ui: &Ui,
    response: &Response,
    radius: impl Into<CornerRadius>,
)
Expand description

Draw a focus ring around a response if it has keyboard focus.

Pass the control’s corner radius so the 2 px outer ring stays concentric.