pub trait IKeyboardNavigationHandler {
// Required methods
fn set_owner(&self, owner: &Ref<InputElement>);
fn move_(
&self,
element: Option<&Ref<InputElement>>,
direction: NavigationDirection,
key_modifiers: KeyModifiers,
device_type: Option<KeyDeviceType>,
) -> bool;
}Expand description
Defines the interface for classes that handle keyboard navigation for a window.
Required Methods§
Sourcefn set_owner(&self, owner: &Ref<InputElement>)
fn set_owner(&self, owner: &Ref<InputElement>)
Sets the owner of the keyboard navigation handler.
This method can only be called once, typically by the owner itself on creation.
Sourcefn move_(
&self,
element: Option<&Ref<InputElement>>,
direction: NavigationDirection,
key_modifiers: KeyModifiers,
device_type: Option<KeyDeviceType>,
) -> bool
fn move_( &self, element: Option<&Ref<InputElement>>, direction: NavigationDirection, key_modifiers: KeyModifiers, device_type: Option<KeyDeviceType>, ) -> bool
Moves the focus in the specified direction.
element is the current element, key_modifiers any key modifiers
active at the time of focus and device_type the optional key
device type that caused the move.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".