InputElement
struct · ferroui-base · v0.5.0
struct InputElement
Implements input-related functionality for a control.
The pseudoclasses :disabled, :focus, :focus-visible,
:focus-within and :pointerover reflect the input state of the
element.
Members
TYPEto_refis_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_rootfocusable_propertyallow_focus_on_interaction_propertyis_enabled_propertyis_effectively_enabled_propertycursor_propertyis_keyboard_focus_within_propertyis_focused_propertyis_hit_test_visible_propertyis_pointer_over_propertyis_tab_stop_propertytab_index_propertygot_focus_eventgetting_focus_eventlost_focus_eventlosing_focus_eventkey_down_eventkey_up_eventtext_input_eventtext_input_method_client_requested_eventpointer_entered_eventpointer_exited_eventpointer_moved_eventpointer_pressed_eventpointer_released_eventpointer_capture_changing_eventpointer_capture_lost_eventpointer_wheel_changed_eventcontext_requested_eventcontext_canceled_eventconstructnewgot_focusgetting_focuslost_focuslosing_focuskey_downkey_uptext_inputtext_input_method_client_requestedpointer_enteredpointer_exitedpointer_movedpointer_pressedpointer_releasedpointer_capture_changingpointer_capture_lostpointer_wheel_changedcontext_requestedcontext_canceledfocusableset_focusableallow_focus_on_interactionset_allow_focus_on_interactionis_enabledset_is_enabledcursorset_cursoris_keyboard_focus_withinis_focusedis_hit_test_visibleset_is_hit_test_visibleis_pointer_overis_tab_stopset_is_tab_stopis_effectively_enabledtab_indexset_tab_indexkey_bindingsgesture_recognizersfocusfocus_withupdate_is_effectively_enabledinteractive_effectis_holding_enabled_propertyis_hold_with_mouse_enabled_propertypinch_eventpinch_ended_eventpull_gesture_eventpull_gesture_ended_eventswipe_gesture_eventswipe_gesture_ended_eventscroll_gesture_eventscroll_gesture_inertia_starting_eventscroll_gesture_ended_eventpointer_touch_pad_gesture_magnify_eventpointer_touch_pad_gesture_rotate_eventpointer_touch_pad_gesture_swipe_eventtapped_eventright_tapped_eventholding_eventdouble_tapped_eventget_is_holding_enabledset_is_holding_enabledget_is_hold_with_mouse_enabledset_is_hold_with_mouse_enabledpinchpinch_endedpull_gesturepull_gesture_endedscroll_gesturescroll_gesture_inertia_startingscroll_gesture_endedpointer_touch_pad_gesture_magnifypointer_touch_pad_gesture_rotateswipe_gestureswipe_gesture_endedpointer_touch_pad_gesture_swipetappedright_tappedholdingdouble_tappedget_input_elements_atget_input_elements_at_withget_input_elements_at_geometryinput_hit_testinput_hit_test_withinput_hit_test_geometryinput_hit_test_filteredinput_hit_test_geometry_filtered
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<InputElement>
Returns a strong reference to this object.
is_enabled_core
fn is_enabled_core(self: &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(self: &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(self: &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(self: &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(self: &Self, e: &FocusChangedEventArgs)
Called when the control or one of its child elements gets focus.
on_lost_focus
fn on_lost_focus(self: &Self, e: &FocusChangedEventArgs)
Called when the control or one of its child elements loses focus.
on_key_down
fn on_key_down(self: &Self, e: &KeyEventArgs)
Called before the key down event occurs.
on_key_up
fn on_key_up(self: &Self, e: &KeyEventArgs)
Called before the key up event occurs.
on_text_input
fn on_text_input(self: &Self, e: &TextInputEventArgs)
Called before the text input event occurs.
on_pointer_entered
fn on_pointer_entered(self: &Self, e: &PointerEventArgs)
Called before the pointer entered event occurs.
on_pointer_exited
fn on_pointer_exited(self: &Self, e: &PointerEventArgs)
Called before the pointer exited event occurs.
on_pointer_moved
fn on_pointer_moved(self: &Self, e: &PointerEventArgs)
Called before the pointer moved event occurs.
on_pointer_pressed
fn on_pointer_pressed(self: &Self, e: &PointerPressedEventArgs)
Called before the pointer pressed event occurs.
on_pointer_released
fn on_pointer_released(self: &Self, e: &PointerReleasedEventArgs)
Called before the pointer released event occurs.
on_pointer_capture_changing
fn on_pointer_capture_changing(self: &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(self: &Self, e: &PointerCaptureLostEventArgs)
Called before the pointer capture lost event occurs.
on_pointer_wheel_changed
fn on_pointer_wheel_changed(self: &Self, e: &PointerWheelEventArgs)
Called before the pointer wheel changed event occurs.
on_tapped
fn on_tapped(self: &Self, e: &TappedEventArgs)
Called when a tap gesture occurs on the control.
on_right_tapped
fn on_right_tapped(self: &Self, e: &TappedEventArgs)
Called when a right tap gesture occurs on the control.
on_double_tapped
fn on_double_tapped(self: &Self, e: &TappedEventArgs)
Called when a double-tap gesture occurs on the control.
on_holding
fn on_holding(self: &Self, e: &HoldingRoutedEventArgs)
Called when a hold gesture occurs on the control.
on_access_key
fn on_access_key(self: &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(self: &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(self: &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(self: &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(self: &Self) -> Option<Ref<InputElement>>
Lets the element name the last focusable element within it.
process_tab_stop_override
fn process_tab_stop_override(self: &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(self: &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(self: &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(self: &Self) -> Option<&dyn ICustomKeyboardNavigation>
The element as a custom keyboard navigation handler, if it is one.
as_scrollable
fn as_scrollable(self: &Self) -> Option<&dyn IScrollable>
The element as a scrollable, if it is one.
as_hosted_visual_tree_root
fn as_hosted_visual_tree_root(self: &Self) -> Option<&dyn IHostedVisualTreeRoot>
The element as the root of a hosted visual tree (such as a popup root), if it is one.
focusable_property
fn focusable_property() -> &'static StyledProperty<bool>
Defines the Focusable property.
allow_focus_on_interaction_property
fn allow_focus_on_interaction_property() -> &'static StyledProperty<bool>
Whether pointer-origin focus changes may focus this element. Inherited; programmatic, tab and directional focus remain controlled by Focusable/IsTabStop as before.
is_enabled_property
fn is_enabled_property() -> &'static StyledProperty<bool>
Defines the IsEnabled property.
is_effectively_enabled_property
fn is_effectively_enabled_property() -> &'static DirectProperty<InputElement, bool>
Defines the IsEffectivelyEnabled property.
cursor_property
fn cursor_property() -> &'static StyledProperty<Option<Rc<Cursor>>>
Gets or sets associated mouse cursor.
is_keyboard_focus_within_property
fn is_keyboard_focus_within_property() -> &'static DirectProperty<InputElement, bool>
Defines the IsKeyboardFocusWithin property.
is_focused_property
fn is_focused_property() -> &'static DirectProperty<InputElement, bool>
Defines the IsFocused property.
is_hit_test_visible_property
fn is_hit_test_visible_property() -> &'static StyledProperty<bool>
Defines the IsHitTestVisible property.
is_pointer_over_property
fn is_pointer_over_property() -> &'static DirectProperty<InputElement, bool>
Defines the IsPointerOver property.
is_tab_stop_property
fn is_tab_stop_property() -> &'static StyledProperty<bool>
Defines the IsTabStop property.
tab_index_property
fn tab_index_property() -> &'static StyledProperty<i32>
Defines the TabIndex property.
got_focus_event
fn got_focus_event() -> &'static RoutedEvent<FocusChangedEventArgs>
Defines the GotFocus event.
getting_focus_event
fn getting_focus_event() -> &'static RoutedEvent<FocusChangingEventArgs>
Defines the GettingFocus event.
lost_focus_event
fn lost_focus_event() -> &'static RoutedEvent<FocusChangedEventArgs>
Defines the LostFocus event.
losing_focus_event
fn losing_focus_event() -> &'static RoutedEvent<FocusChangingEventArgs>
Defines the LosingFocus event.
key_down_event
fn key_down_event() -> &'static RoutedEvent<KeyEventArgs>
Defines the KeyDown event.
key_up_event
fn key_up_event() -> &'static RoutedEvent<KeyEventArgs>
Defines the KeyUp event.
text_input_event
fn text_input_event() -> &'static RoutedEvent<TextInputEventArgs>
Defines the TextInput event.
text_input_method_client_requested_event
fn text_input_method_client_requested_event() -> &'static RoutedEvent<TextInputMethodClientRequestedEventArgs>
Defines the TextInputMethodClientRequested event.
pointer_entered_event
fn pointer_entered_event() -> &'static RoutedEvent<PointerEventArgs>
Defines the PointerEntered event.
pointer_exited_event
fn pointer_exited_event() -> &'static RoutedEvent<PointerEventArgs>
Defines the PointerExited event.
pointer_moved_event
fn pointer_moved_event() -> &'static RoutedEvent<PointerEventArgs>
Defines the PointerMoved event.
pointer_pressed_event
fn pointer_pressed_event() -> &'static RoutedEvent<PointerPressedEventArgs>
Defines the PointerPressed event.
pointer_released_event
fn pointer_released_event() -> &'static RoutedEvent<PointerReleasedEventArgs>
Defines the PointerReleased event.
pointer_capture_changing_event
fn pointer_capture_changing_event() -> &'static RoutedEvent<PointerCaptureChangingEventArgs>
Defines the PointerCaptureChanging routed event.
pointer_capture_lost_event
fn pointer_capture_lost_event() -> &'static RoutedEvent<PointerCaptureLostEventArgs>
Defines the PointerCaptureLost routed event.
pointer_wheel_changed_event
fn pointer_wheel_changed_event() -> &'static RoutedEvent<PointerWheelEventArgs>
Defines the PointerWheelChanged event.
context_requested_event
fn context_requested_event() -> &'static RoutedEvent<ContextRequestedEventArgs>
Provides event data for the ContextRequested event.
context_canceled_event
fn context_canceled_event() -> &'static RoutedEvent<RoutedEventArgs>
Provides event data for the ContextCanceled event.
construct
fn construct() -> Self
Creates the class data; see crate::FerroObject::construct.
new
fn new() -> Ref<Self>
got_focus
fn got_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the control receives focus.
getting_focus
fn getting_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs before the control receives focus.
lost_focus
fn lost_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the control loses focus.
losing_focus
fn losing_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs before the control loses focus.
key_down
fn key_down(self: &Self, handler: impl Fn(&Interactive, &KeyEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when a key is pressed while the control has focus.
key_up
fn key_up(self: &Self, handler: impl Fn(&Interactive, &KeyEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when a key is released while the control has focus.
text_input
fn text_input(self: &Self, handler: impl Fn(&Interactive, &TextInputEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when a user typed some text while the control has focus.
text_input_method_client_requested
fn text_input_method_client_requested(self: &Self, handler: impl Fn(&Interactive, &TextInputMethodClientRequestedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when an input element gains input focus and the input method is looking for the corresponding client.
pointer_entered
fn pointer_entered(self: &Self, handler: impl Fn(&Interactive, &PointerEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the pointer enters the control.
pointer_exited
fn pointer_exited(self: &Self, handler: impl Fn(&Interactive, &PointerEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the pointer leaves the control.
pointer_moved
fn pointer_moved(self: &Self, handler: impl Fn(&Interactive, &PointerEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the pointer moves over the control.
pointer_pressed
fn pointer_pressed(self: &Self, handler: impl Fn(&Interactive, &PointerPressedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the pointer is pressed over the control.
pointer_released
fn pointer_released(self: &Self, handler: impl Fn(&Interactive, &PointerReleasedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the pointer is released over the control.
pointer_capture_changing
fn pointer_capture_changing(self: &Self, handler: impl Fn(&Interactive, &PointerCaptureChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the capture of a pointer is about to change on the control.
pointer_capture_lost
fn pointer_capture_lost(self: &Self, handler: impl Fn(&Interactive, &PointerCaptureLostEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the control or its child control loses the pointer capture for any reason; the event will not be triggered for a parent control if capture was transferred to another child of that parent control.
pointer_wheel_changed
fn pointer_wheel_changed(self: &Self, handler: impl Fn(&Interactive, &PointerWheelEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the mouse is scrolled over the control.
context_requested
fn context_requested(self: &Self, handler: impl Fn(&Interactive, &ContextRequestedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user has completed a context input gesture, such as a right-click.
context_canceled
fn context_canceled(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the context input gesture continues into another gesture, to notify the element that the context flyout should not be opened.
focusable
fn focusable(self: &Self) -> bool
Whether the control can receive focus.
set_focusable
fn set_focusable(self: &Self, value: bool)
allow_focus_on_interaction
fn allow_focus_on_interaction(self: &Self) -> bool
set_allow_focus_on_interaction
fn set_allow_focus_on_interaction(self: &Self, value: bool)
is_enabled
fn is_enabled(self: &Self) -> bool
Whether the control is enabled for user interaction.
set_is_enabled
fn set_is_enabled(self: &Self, value: bool)
cursor
fn cursor(self: &Self) -> Option<Rc<Cursor>>
The associated mouse cursor.
set_cursor
fn set_cursor(self: &Self, value: Option<Rc<Cursor>>)
is_keyboard_focus_within
fn is_keyboard_focus_within(self: &Self) -> bool
Whether keyboard focus is anywhere within the element or its visual tree child elements.
is_focused
fn is_focused(self: &Self) -> bool
Whether the control is focused.
is_hit_test_visible
fn is_hit_test_visible(self: &Self) -> bool
Whether the control is considered for hit testing.
set_is_hit_test_visible
fn set_is_hit_test_visible(self: &Self, value: bool)
is_pointer_over
fn is_pointer_over(self: &Self) -> bool
Whether the pointer is currently over the control.
is_tab_stop
fn is_tab_stop(self: &Self) -> bool
Whether the control is included in tab navigation.
set_is_tab_stop
fn set_is_tab_stop(self: &Self, value: bool)
is_effectively_enabled
fn is_effectively_enabled(self: &Self) -> bool
Whether this control and all its parents are enabled.
tab_index
fn tab_index(self: &Self) -> i32
A value that determines the order in which elements receive focus when the user navigates through controls by pressing the Tab key.
set_tab_index
fn set_tab_index(self: &Self, value: i32)
key_bindings
fn key_bindings(self: &Self) -> FerroList<Ref<KeyBinding>>
The key bindings for this input element.
The list is returned by handle: clones refer to the same list.
gesture_recognizers
fn gesture_recognizers(self: &Self) -> GestureRecognizerCollection
The gesture recognizers attached to this input element.
focus
fn focus(self: &Self) -> bool
Focuses the control, with an unspecified navigation method and no key modifiers. Returns whether the control was focused.
focus_with
fn focus_with(self: &Self, method: NavigationMethod, key_modifiers: KeyModifiers) -> bool
Focuses the control.
method is the method by which focus was changed and
key_modifiers any key modifiers active at the time of focus.
Returns whether the control was focused.
update_is_effectively_enabled
fn update_is_effectively_enabled(self: &Self)
Updates the is_effectively_enabled property based on the parent's
is_effectively_enabled.
interactive_effect
fn interactive_effect(self: &Self) -> Option<Ref<Effect>>
The interactive effect the element routes its pointer input to (#455, E7, not from
upstream): its Effect when that is an interactive custom effect class
(Effect::construct_interactive).
is_holding_enabled_property
fn is_holding_enabled_property() -> &'static AttachedProperty<bool>
Defines the IsHoldingEnabled attached property.
is_hold_with_mouse_enabled_property
fn is_hold_with_mouse_enabled_property() -> &'static AttachedProperty<bool>
Defines the IsHoldWithMouseEnabled attached property.
pinch_event
fn pinch_event() -> &'static RoutedEvent<PinchEventArgs>
Defines the Pinch event.
pinch_ended_event
fn pinch_ended_event() -> &'static RoutedEvent<PinchEndedEventArgs>
Defines the PinchEnded event.
pull_gesture_event
fn pull_gesture_event() -> &'static RoutedEvent<PullGestureEventArgs>
Defines the PullGesture event.
pull_gesture_ended_event
fn pull_gesture_ended_event() -> &'static RoutedEvent<PullGestureEndedEventArgs>
Defines the PullGestureEnded event.
swipe_gesture_event
fn swipe_gesture_event() -> &'static RoutedEvent<SwipeGestureEventArgs>
Defines the SwipeGesture event.
swipe_gesture_ended_event
fn swipe_gesture_ended_event() -> &'static RoutedEvent<SwipeGestureEndedEventArgs>
Defines the SwipeGestureEnded event.
scroll_gesture_event
fn scroll_gesture_event() -> &'static RoutedEvent<ScrollGestureEventArgs>
Defines the ScrollGesture event.
scroll_gesture_inertia_starting_event
fn scroll_gesture_inertia_starting_event() -> &'static RoutedEvent<ScrollGestureInertiaStartingEventArgs>
Defines the ScrollGestureInertiaStarting event.
scroll_gesture_ended_event
fn scroll_gesture_ended_event() -> &'static RoutedEvent<ScrollGestureEndedEventArgs>
Defines the ScrollGestureEnded event.
pointer_touch_pad_gesture_magnify_event
fn pointer_touch_pad_gesture_magnify_event() -> &'static RoutedEvent<PointerDeltaEventArgs>
Defines the PointerTouchPadGestureMagnify event.
pointer_touch_pad_gesture_rotate_event
fn pointer_touch_pad_gesture_rotate_event() -> &'static RoutedEvent<PointerDeltaEventArgs>
Defines the PointerTouchPadGestureRotate event.
pointer_touch_pad_gesture_swipe_event
fn pointer_touch_pad_gesture_swipe_event() -> &'static RoutedEvent<PointerDeltaEventArgs>
Defines the PointerTouchPadGestureSwipe event.
tapped_event
fn tapped_event() -> &'static RoutedEvent<TappedEventArgs>
Defines the Tapped event.
right_tapped_event
fn right_tapped_event() -> &'static RoutedEvent<TappedEventArgs>
Defines the RightTapped event.
holding_event
fn holding_event() -> &'static RoutedEvent<HoldingRoutedEventArgs>
Defines the Holding event.
double_tapped_event
fn double_tapped_event() -> &'static RoutedEvent<TappedEventArgs>
Defines the DoubleTapped event.
get_is_holding_enabled
fn get_is_holding_enabled(element: &StyledElement) -> bool
Gets whether the holding gesture is enabled on an element.
set_is_holding_enabled
fn set_is_holding_enabled(element: &StyledElement, value: bool)
Sets whether the holding gesture is enabled on an element.
get_is_hold_with_mouse_enabled
fn get_is_hold_with_mouse_enabled(element: &StyledElement) -> bool
Gets whether the holding gesture can be performed with the mouse on an element.
set_is_hold_with_mouse_enabled
fn set_is_hold_with_mouse_enabled(element: &StyledElement, value: bool)
Sets whether the holding gesture can be performed with the mouse on an element.
pinch
fn pinch(self: &Self, handler: impl Fn(&Interactive, &PinchEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user moves two contact points closer together.
pinch_ended
fn pinch_ended(self: &Self, handler: impl Fn(&Interactive, &PinchEndedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user releases both contact points used in a pinch gesture.
pull_gesture
fn pull_gesture(self: &Self, handler: impl Fn(&Interactive, &PullGestureEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user drags from the edge of a control.
pull_gesture_ended
fn pull_gesture_ended(self: &Self, handler: impl Fn(&Interactive, &PullGestureEndedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user releases the pointer after a pull gesture.
scroll_gesture
fn scroll_gesture(self: &Self, handler: impl Fn(&Interactive, &ScrollGestureEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user continuously moves the pointer in the same direction within the control's boundaries.
scroll_gesture_inertia_starting
fn scroll_gesture_inertia_starting(self: &Self, handler: impl Fn(&Interactive, &ScrollGestureInertiaStartingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs within the control's boundaries when a scroll gesture's inertia begins.
scroll_gesture_ended
fn scroll_gesture_ended(self: &Self, handler: impl Fn(&Interactive, &ScrollGestureEndedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when a scroll gesture ends.
pointer_touch_pad_gesture_magnify
fn pointer_touch_pad_gesture_magnify(self: &Self, handler: impl Fn(&Interactive, &PointerDeltaEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user moves two contact points away from each other on a touchpad.
pointer_touch_pad_gesture_rotate
fn pointer_touch_pad_gesture_rotate(self: &Self, handler: impl Fn(&Interactive, &PointerDeltaEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user places two contact points and moves them in a circular motion on a touchpad.
swipe_gesture
fn swipe_gesture(self: &Self, handler: impl Fn(&Interactive, &SwipeGestureEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user rapidly drags the pointer in a single direction across the control.
swipe_gesture_ended
fn swipe_gesture_ended(self: &Self, handler: impl Fn(&Interactive, &SwipeGestureEndedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when a swipe gesture ends on the control.
pointer_touch_pad_gesture_swipe
fn pointer_touch_pad_gesture_swipe(self: &Self, handler: impl Fn(&Interactive, &PointerDeltaEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user rapidly drags the pointer in a single direction on a touchpad.
tapped
fn tapped(self: &Self, handler: impl Fn(&Interactive, &TappedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user briefly contacts and releases a single point on the control.
right_tapped
fn right_tapped(self: &Self, handler: impl Fn(&Interactive, &TappedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user briefly contacts and releases a single point on the control using the secondary action.
holding
fn holding(self: &Self, handler: impl Fn(&Interactive, &HoldingRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user makes a single contact, then maintains contact beyond a given time threshold without releasing or making another contact.
double_tapped
fn double_tapped(self: &Self, handler: impl Fn(&Interactive, &TappedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Occurs when the user briefly contacts and releases twice on a single point, without significant movement between contacts.
get_input_elements_at
fn get_input_elements_at(self: &Self, p: Point) -> Vec<Ref<InputElement>>
Returns the active input elements at a point on the element, in the element's coordinates, topmost first. Only enabled elements are considered.
get_input_elements_at_with
fn get_input_elements_at_with(self: &Self, p: Point, enabled_elements_only: bool) -> Vec<Ref<InputElement>>
Returns the active input elements at a point on the element, in the element's coordinates, topmost first.
enabled_elements_only tells whether only enabled elements should
be considered.
get_input_elements_at_geometry
fn get_input_elements_at_geometry(self: &Self, geometry: &Geometry, enabled_elements_only: bool) -> Vec<GeometryHitTestResult>
Returns the active input elements intersecting a geometry on the element, in the element's coordinates, topmost first, with the details of the intersections.
enabled_elements_only tells whether only enabled elements should
be considered.
input_hit_test
fn input_hit_test(self: &Self, p: Point) -> Option<Ref<InputElement>>
Returns the topmost active input element at a point on the element, in the element's coordinates. Only enabled elements are considered.
input_hit_test_with
fn input_hit_test_with(self: &Self, p: Point, enabled_elements_only: bool) -> Option<Ref<InputElement>>
Returns the topmost active input element at a point on the element, in the element's coordinates.
enabled_elements_only tells whether only enabled elements should
be considered.
input_hit_test_geometry
fn input_hit_test_geometry(self: &Self, geometry: &Geometry, enabled_elements_only: bool) -> Option<GeometryHitTestResult>
Returns the topmost active input element intersecting a geometry on the element, in the element's coordinates, with the details of the intersection.
enabled_elements_only tells whether only enabled elements should
be considered.
input_hit_test_filtered
fn input_hit_test_filtered(self: &Self, p: Point, filter: &dyn Fn(&Visual) -> bool, enabled_elements_only: bool) -> Option<Ref<InputElement>>
Returns the topmost active input element at a point on the element that also passes a filter, in the element's coordinates.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results. enabled_elements_only
tells whether only enabled elements should be considered.
input_hit_test_geometry_filtered
fn input_hit_test_geometry_filtered(self: &Self, geometry: &Geometry, filter: &dyn Fn(&Visual) -> bool, enabled_elements_only: bool) -> Option<Ref<InputElement>>
Returns the topmost active input element intersecting a geometry on the element that also passes a filter, in the element's coordinates.
If filter returns false for a visual then the visual and all its
descendants are excluded from the results. enabled_elements_only
tells whether only enabled elements should be considered.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<InputElement>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplFerroObjectImplVisualImplInputElementImplIInputElement
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.