#[repr(i32)]pub enum XYFocusNavigationStrategy {
Auto = 0,
Projection = 1,
NavigationDirectionDistance = 2,
RectilinearDistance = 3,
}Expand description
Specifies the disambiguation strategy used for navigating between multiple candidate targets with directional (XY) navigation.
Variants§
Auto = 0
Indicates that navigation strategy is inherited from the element’s
ancestors. If all ancestors have a value of Auto, the fallback
strategy is Projection.
Projection = 1
Indicates that focus moves to the first element encountered when projecting the edge of the currently focused element in the direction of navigation.
Indicates that focus moves to the element closest to the axis of the navigation direction.
RectilinearDistance = 3
Indicates that focus moves to the closest element based on the shortest 2D distance (Manhattan metric).
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more