Trait rat_widget::focus::HasFocus
source · pub trait HasFocus {
// Required method
fn focus(&self) -> Focus;
// Provided methods
fn container(&self) -> Option<ContainerFlag> { ... }
fn area(&self) -> Rect { ... }
fn is_focused(&self) -> bool { ... }
fn lost_focus(&self) -> bool { ... }
fn gained_focus(&self) -> bool { ... }
}Expand description
Is this a container widget.
Required Methods§
Provided Methods§
sourcefn container(&self) -> Option<ContainerFlag>
fn container(&self) -> Option<ContainerFlag>
Returns the container-flag
sourcefn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Focused?
sourcefn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
Just lost focus.
sourcefn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
Just gained focus.