InputElementImpl
trait · ferroui-base · v0.5.0
trait InputElementImpl: InteractiveImpl + $crate::Upcast<InputElement>
The overridable members introduced by the class.
Members
is_enabled_coreis_focus_scopeon_getting_focuson_losing_focuson_got_focuson_lost_focuson_key_downon_key_upon_text_inputon_pointer_enteredon_pointer_exitedon_pointer_movedon_pointer_pressedon_pointer_releasedon_pointer_capture_changingon_pointer_capture_loston_pointer_wheel_changedon_tappedon_right_tappedon_double_tappedon_holdingon_access_keyget_next_tab_stop_overrideget_previous_tab_stop_overrideget_first_focusable_element_overrideget_last_focusable_element_overrideprocess_tab_stop_overrideprocess_candidate_tab_stop_overridechildren_in_tab_focus_orderas_custom_keyboard_navigationas_scrollableas_hosted_visual_tree_root
is_enabled_core
fn is_enabled_core(this: &Self) -> bool
Whether the control is enabled, as far as the control itself is
concerned. The default is the value of is_enabled; controls
with additional conditions (e.g. a command that cannot execute)
override this.
is_focus_scope
fn is_focus_scope(this: &Self) -> bool
Whether the element is a focus scope: an element that remembers which of its descendants was focused last.
on_getting_focus
fn on_getting_focus(this: &Self, e: &FocusChangingEventArgs)
Called when the control or one of its child elements is about to get focus.
on_losing_focus
fn on_losing_focus(this: &Self, e: &FocusChangingEventArgs)
Called when the control or one of its child elements is about to lose focus.
on_got_focus
fn on_got_focus(this: &Self, e: &FocusChangedEventArgs)
Called when the control or one of its child elements gets focus.
on_lost_focus
fn on_lost_focus(this: &Self, e: &FocusChangedEventArgs)
Called when the control or one of its child elements loses focus.
on_key_down
fn on_key_down(this: &Self, e: &KeyEventArgs)
Called before the key down event occurs.
on_key_up
fn on_key_up(this: &Self, e: &KeyEventArgs)
Called before the key up event occurs.
on_text_input
fn on_text_input(this: &Self, e: &TextInputEventArgs)
Called before the text input event occurs.
on_pointer_entered
fn on_pointer_entered(this: &Self, e: &PointerEventArgs)
Called before the pointer entered event occurs.
on_pointer_exited
fn on_pointer_exited(this: &Self, e: &PointerEventArgs)
Called before the pointer exited event occurs.
on_pointer_moved
fn on_pointer_moved(this: &Self, e: &PointerEventArgs)
Called before the pointer moved event occurs.
on_pointer_pressed
fn on_pointer_pressed(this: &Self, e: &PointerPressedEventArgs)
Called before the pointer pressed event occurs.
on_pointer_released
fn on_pointer_released(this: &Self, e: &PointerReleasedEventArgs)
Called before the pointer released event occurs.
on_pointer_capture_changing
fn on_pointer_capture_changing(this: &Self, e: &PointerCaptureChangingEventArgs)
Called when the capture of a pointer is about to change on the control or one of its descendants.
on_pointer_capture_lost
fn on_pointer_capture_lost(this: &Self, e: &PointerCaptureLostEventArgs)
Called before the pointer capture lost event occurs.
on_pointer_wheel_changed
fn on_pointer_wheel_changed(this: &Self, e: &PointerWheelEventArgs)
Called before the pointer wheel changed event occurs.
on_tapped
fn on_tapped(this: &Self, e: &TappedEventArgs)
Called when a tap gesture occurs on the control.
on_right_tapped
fn on_right_tapped(this: &Self, e: &TappedEventArgs)
Called when a right tap gesture occurs on the control.
on_double_tapped
fn on_double_tapped(this: &Self, e: &TappedEventArgs)
Called when a double-tap gesture occurs on the control.
on_holding
fn on_holding(this: &Self, e: &HoldingRoutedEventArgs)
Called when a hold gesture occurs on the control.
on_access_key
fn on_access_key(this: &Self, e: &dyn IRoutedEventArgs)
Called when the access key of the control is pressed. The default focuses the control.
get_next_tab_stop_override
fn get_next_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
Called when focus is moving forward out of this element: lets it name the element that should receive focus next.
get_previous_tab_stop_override
fn get_previous_tab_stop_override(this: &Self) -> Option<Ref<InputElement>>
Called when focus is moving backward out of this element: lets it name the element that should receive focus next.
get_first_focusable_element_override
fn get_first_focusable_element_override(this: &Self) -> Option<Ref<InputElement>>
Lets the element name the first focusable element within it.
get_last_focusable_element_override
fn get_last_focusable_element_override(this: &Self) -> Option<Ref<InputElement>>
Lets the element name the last focusable element within it.
process_tab_stop_override
fn process_tab_stop_override(this: &Self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, did_cycle_focus_at_root_visual: bool, new_tab_stop: &mut Option<Ref<InputElement>>) -> bool
Lets the element (an ancestor of the focused element) override
the tab stop chosen by tab navigation. Returns true when the tab
stop is overridden; the override is written to new_tab_stop.
process_candidate_tab_stop_override
fn process_candidate_tab_stop_override(this: &Self, focused_element: Option<&Ref<InputElement>>, candidate_tab_stop_element: Option<&Ref<InputElement>>, overriden_candidate_tab_stop_element: Option<&Ref<InputElement>>, is_reverse: bool, new_tab_stop: &mut Option<Ref<InputElement>>) -> bool
Lets the element (an ancestor of the candidate tab stop)
override the tab stop chosen by tab navigation. Returns true
when the tab stop is overridden; the override is written to
new_tab_stop.
children_in_tab_focus_order
fn children_in_tab_focus_order(this: &Self) -> Option<Vec<Ref<InputElement>>>
The children of the element that take part in tab navigation, in
their tab order (WinUI UIElement.GetChildrenInTabFocusOrder).
None, the default, takes the input elements among the visual
children, in their order. An element that keeps children it does
not show (the recycled elements of a virtualizing panel), or whose
visual order is not the order of its items, returns its children
in tab order here. Upstream has no such member (DEVIATIONS.md,
Input).
as_custom_keyboard_navigation
fn as_custom_keyboard_navigation(this: &Self) -> Option<&dyn ICustomKeyboardNavigation>
The element as a custom keyboard navigation handler, if it is one.
as_scrollable
fn as_scrollable(this: &Self) -> Option<&dyn IScrollable>
The element as a scrollable, if it is one.
as_hosted_visual_tree_root
fn as_hosted_visual_tree_root(this: &Self) -> Option<&dyn IHostedVisualTreeRoot>
The element as the root of a hosted visual tree (such as a popup root), if it is one.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.