FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FocusChangedEventArgs

    struct · ferroui-base · v0.5.0

    struct FocusChangedEventArgs
    

    Holds arguments for the GotFocus and LostFocus events.

    View source

    Members

    new_focused_element

    new_focused_element: Option<crate::Ref<super::InputElement>>
    

    The element that focus has moved to.

    Source

    old_focused_element

    old_focused_element: Option<crate::Ref<super::InputElement>>
    

    The element that previously had focus.

    Source

    navigation_method

    navigation_method: super::NavigationMethod
    

    Indicates how the change in focus occurred.

    Source

    key_modifiers

    key_modifiers: super::KeyModifiers
    

    Any key modifiers active at the time of focus.

    Source

    new

    fn new<T: ?Sized>(routed_event: &RoutedEvent<T>) -> Self
    

    Creates args for a routed event.

    Source

    Trait implementations

    Availability

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