pub trait FocusContainer {
// Required method
fn build(&self, builder: &mut FocusBuilder);
// Provided methods
fn container(&self) -> Option<ContainerFlag> { ... }
fn area(&self) -> Rect { ... }
fn is_container_focused(&self) -> bool { ... }
fn container_lost_focus(&self) -> bool { ... }
fn container_gained_focus(&self) -> bool { ... }
}Expand description
Is this a container widget.
Required Methods§
sourcefn build(&self, builder: &mut FocusBuilder)
fn build(&self, builder: &mut FocusBuilder)
Build the focus-structure for the container.
Provided Methods§
sourcefn container(&self) -> Option<ContainerFlag>
fn container(&self) -> Option<ContainerFlag>
Returns the container-flag.
Will be used to collect the state of all widgets in the container.
sourcefn is_container_focused(&self) -> bool
fn is_container_focused(&self) -> bool
Focused?
sourcefn container_lost_focus(&self) -> bool
fn container_lost_focus(&self) -> bool
Just lost focus.
sourcefn container_gained_focus(&self) -> bool
fn container_gained_focus(&self) -> bool
Just gained focus.