pub trait Focus {
// Required methods
fn can_focus(&self) -> bool;
fn is_focused(&self) -> bool;
fn focus(&mut self);
fn blur(&mut self);
}Required Methods§
Sourcefn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Check if the widget is focused
Implementations on Foreign Types§
Source§impl<T: Focus> Focus for &mut T
This is required to support Option<&mut T>, but would be otherwise unnecessary
impl<T: Focus> Focus for &mut T
This is required to support Option<&mut T>, but would be otherwise unnecessary