pub fn focused_view<V: View>(view: V) -> Canvas<V> {
    Canvas::wrap(view)
        .with_take_focus(|_, _| false)
        .with_draw(|s, p| {
            let mut p = p.clone();
            p.focused = true;
            s.draw(&p)
        })
}
/// A view which is always in focus, and which never takes focus from elsewhere.
A view which is always in focus, and which never takes focus from elsewhere.
A view which is always in focus and which never takes focus from elsewhere .
pub fn focused_view<V: View>(view: V) -> Canvas<V> {
    Canvas::wrap(view)
        .with_take_focus(|_, _| false)
        .with_draw(|s, p| {
            let mut p = p.clone();
            p.focused = true;
            s.draw(&p)
        })
}
pub fn focused_view < V : View > ( view : V ) -> Canvas < V > { Canvas :: wrap ( view ) . with_take_focus ( | _ , _ | false ) . with_draw ( | s , p | { let mut p = p . clone ( ) ; p . focused = true ; s . draw ( & p ) } ) }
A view which is always in focus, and which never takes focus from elsewhere.
A view which is always in focus and which never takes focus from elsewhere .
view
V
view
V