Enum bevy_ui_navigation::FocusState
source · [−]pub enum FocusState {
Dormant,
Focused,
Active,
Inert,
}Expand description
State of a Focusable.
Variants
Dormant
An entity that was previously Active from a branch of
the menu tree that is currently not focused. When focus comes back to
the NavMenu containing this Focusable, the Dormant element
will be the Focused entity.
Focused
The currently highlighted/used entity, there is only a signle focused entity.
Active
The path through the menu tree to the current Focused
entity. They are the Focusables from previous menus that were
activated in order to reach the NavMenu containing the currently
focused element.
Inert
None of the above: This Focusable is neither Dormant, Focused
or Active.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FocusState
impl Send for FocusState
impl Sync for FocusState
impl Unpin for FocusState
impl UnwindSafe for FocusState
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
pub fn clone_type_data(&self) -> Box<dyn TypeData + 'static, Global>
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more