Guide API
Skip to main content

adjust_focus

Function adjust_focus 

Source
pub fn adjust_focus<L: OutlineViewer + ?Sized>(
    this: &mut L,
    new_focus: i32,
    ctx: &mut Context<'_>,
)
Expand description

Clamp new_focus, focus it, and scroll it into view.