pub trait FocusContainer {
// Required method
fn build(&self, builder: &mut FocusBuilder);
// Provided methods
fn container(&self) -> Option<ContainerFlag> { ... }
fn area(&self) -> Rect { ... }
fn area_z(&self) -> u16 { ... }
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 area_z(&self) -> u16
fn area_z(&self) -> u16
Z value for the area.
When testing for mouse interactions the z-value is taken into consideration too.
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.