FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    KeyboardNavigationHandler

    struct · ferroui-base · v0.5.0

    struct KeyboardNavigationHandler
    

    Handles keyboard navigation for a window.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Creates a keyboard navigation handler without an owner.

    Source

    get_next

    fn get_next(element: &crate::Ref<super::InputElement>, direction: NavigationDirection) -> Option<crate::Ref<super::InputElement>>
    

    Gets the next control in the specified navigation direction.

    Returns the next element in the specified direction, or None if element was the last in the requested direction.

    Panics for directions other than next, previous, up, down, left and right.

    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
    • IKeyboardNavigationHandler

    Availability

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