FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this type.

    Source

    down_property

    fn down_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
    

    The object that gets focus when a user presses the Dpad down.

    Source

    set_down

    fn set_down(obj: &InputElement, value: Option<Ref<InputElement>>)
    

    Source

    get_down

    fn get_down(obj: &InputElement) -> Option<Ref<InputElement>>
    

    Source

    left_property

    fn left_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
    

    The object that gets focus when a user presses the Dpad left.

    Source

    set_left

    fn set_left(obj: &InputElement, value: Option<Ref<InputElement>>)
    

    Source

    get_left

    fn get_left(obj: &InputElement) -> Option<Ref<InputElement>>
    

    Source

    right_property

    fn right_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
    

    The object that gets focus when a user presses the Dpad right.

    Source

    set_right

    fn set_right(obj: &InputElement, value: Option<Ref<InputElement>>)
    

    Source

    get_right

    fn get_right(obj: &InputElement) -> Option<Ref<InputElement>>
    

    Source

    up_property

    fn up_property() -> &'static AttachedProperty<Option<Ref<InputElement>>>
    

    The object that gets focus when a user presses the Dpad up.

    Source

    set_up

    fn set_up(obj: &InputElement, value: Option<Ref<InputElement>>)
    

    Source

    get_up

    fn get_up(obj: &InputElement) -> Option<Ref<InputElement>>
    

    Source

    down_navigation_strategy_property

    fn down_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
    

    The strategy used to determine the target element of a down navigation.

    Source

    set_down_navigation_strategy

    fn set_down_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
    

    Source

    get_down_navigation_strategy

    fn get_down_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
    

    Source

    up_navigation_strategy_property

    fn up_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
    

    The strategy used to determine the target element of an up navigation.

    Source

    set_up_navigation_strategy

    fn set_up_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
    

    Source

    get_up_navigation_strategy

    fn get_up_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
    

    Source

    left_navigation_strategy_property

    fn left_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
    

    The strategy used to determine the target element of a left navigation.

    Source

    set_left_navigation_strategy

    fn set_left_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
    

    Source

    get_left_navigation_strategy

    fn get_left_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
    

    Source

    right_navigation_strategy_property

    fn right_navigation_strategy_property() -> &'static AttachedProperty<XYFocusNavigationStrategy>
    

    The strategy used to determine the target element of a right navigation.

    Source

    set_right_navigation_strategy

    fn set_right_navigation_strategy(obj: &InputElement, value: XYFocusNavigationStrategy)
    

    Source

    get_right_navigation_strategy

    fn get_right_navigation_strategy(obj: &InputElement) -> XYFocusNavigationStrategy
    

    Source

    navigation_modes_property

    fn navigation_modes_property() -> &'static AttachedProperty<XYFocusNavigationModes>
    

    Defines the XY focus navigation modes that are enabled for the element.

    Source

    set_navigation_modes

    fn set_navigation_modes(obj: &InputElement, value: XYFocusNavigationModes)
    

    Source

    get_navigation_modes

    fn get_navigation_modes(obj: &InputElement) -> XYFocusNavigationModes
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • StaticType

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.