pub enum NavigationMode {
Traditional,
Directional,
}Expand description
Describes the navigation mode to be set by a MediaQuery widget.
The different modes indicate the type of navigation to be used in a widget subtree for those widgets sensitive to it.
Use MediaQuery::navigation_mode_of(app, context) to determine the navigation mode in
effect for the given context. Use a MediaQuery widget to set the navigation mode for
its descendant widgets.
Variants§
Traditional
This indicates a traditional keyboard-and-mouse navigation modality.
This navigation mode is where the arrow keys can be used for secondary modification operations, like moving sliders or cursors, and disabled controls will lose focus and not be traversable.
Directional
This indicates a directional-based navigation mode.
This navigation mode indicates that arrow keys should be reserved for navigation operations, and secondary modifications operations, like moving sliders or cursors, will use alternative bindings or be disabled.
Some behaviors are also affected by this mode. For instance, disabled controls will retain focus when disabled, and will be able to receive focus (although they remain disabled) when traversed.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.