pub enum Navigation {
None,
Lock,
Mouse,
Leave,
Reach,
ReachLeaveFront,
ReachLeaveBack,
Regular,
}Expand description
Focus navigation for widgets.
The effects that hinder focus-change (Reach*, Lock) only work
when navigation changes via next()/prev()/focus_at().
Programmatic focus changes are always possible.
Variants§
None
Widget is not reachable with normal keyboard or mouse navigation.
Lock
Focus is locked to stay with this widget. No mouse or keyboard navigation can change that.
Mouse
Widget is not reachable with keyboard navigation, but can be focused with the mouse.
Leave
Widget cannot be reached with normal keyboard navigation, but can be left. (e.g. Tabs, Split-Divider)
Reach
Widget can be reached with normal keyboard navigation, but not left. (e.g. TextArea)
ReachLeaveFront
Widget can be reached with normal keyboard navigation, but only be left with backward navigation. (e.g. some widget with internal structure)
ReachLeaveBack
Widget can be reached with normal keyboard navigation, but only be left with forward navigation. (e.g. some widget with internal structure)
Regular
Widget can be reached and left with normal keyboard navigation.
Trait Implementations§
Source§fn clone(&self) -> Navigation
fn clone(&self) -> Navigation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn default() -> Navigation
fn default() -> Navigation
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more