XYFocus
struct · ferroui-base · v0.5.0
struct XYFocus
Directional (XY) focus navigation: the attached properties that configure it and the search for the next element in a direction.
Members
TYPEdown_propertyset_downget_downleft_propertyset_leftget_leftright_propertyset_rightget_rightup_propertyset_upget_updown_navigation_strategy_propertyset_down_navigation_strategyget_down_navigation_strategyup_navigation_strategy_propertyset_up_navigation_strategyget_up_navigation_strategyleft_navigation_strategy_propertyset_left_navigation_strategyget_left_navigation_strategyright_navigation_strategy_propertyset_right_navigation_strategyget_right_navigation_strategynavigation_modes_propertyset_navigation_modesget_navigation_modes
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this type.
down_property
fn down_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
The object that gets focus when a user presses the Dpad down.
set_down
fn set_down(obj: &InputElement, value: Option<Ref<InputElement>>)
get_down
fn get_down(obj: &InputElement) -> Option<Ref<InputElement>>
left_property
fn left_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
The object that gets focus when a user presses the Dpad left.
set_left
fn set_left(obj: &InputElement, value: Option<Ref<InputElement>>)
get_left
fn get_left(obj: &InputElement) -> Option<Ref<InputElement>>
right_property
fn right_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
The object that gets focus when a user presses the Dpad right.
set_right
fn set_right(obj: &InputElement, value: Option<Ref<InputElement>>)
get_right
fn get_right(obj: &InputElement) -> Option<Ref<InputElement>>
up_property
fn up_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
The object that gets focus when a user presses the Dpad up.
set_up
fn set_up(obj: &InputElement, value: Option<Ref<InputElement>>)
get_up
fn get_up(obj: &InputElement) -> Option<Ref<InputElement>>
down_navigation_strategy_property
fn down_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
The strategy used to determine the target element of a down navigation.
set_down_navigation_strategy
fn set_down_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
get_down_navigation_strategy
fn get_down_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
up_navigation_strategy_property
fn up_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
The strategy used to determine the target element of an up navigation.
set_up_navigation_strategy
fn set_up_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
get_up_navigation_strategy
fn get_up_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
left_navigation_strategy_property
fn left_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
The strategy used to determine the target element of a left navigation.
set_left_navigation_strategy
fn set_left_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
get_left_navigation_strategy
fn get_left_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
right_navigation_strategy_property
fn right_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
The strategy used to determine the target element of a right navigation.
set_right_navigation_strategy
fn set_right_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
get_right_navigation_strategy
fn get_right_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
navigation_modes_property
fn navigation_modes_property() -> &'static AttachedProperty<XYFocusNavigationModes>
Defines the XY focus navigation modes that are enabled for the element.
set_navigation_modes
fn set_navigation_modes(obj: &InputElement, value: XYFocusNavigationModes)
get_navigation_modes
fn get_navigation_modes(obj: &InputElement) -> XYFocusNavigationModes
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherStaticType
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.