FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<InputElement>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    on_got_focus

    fn on_got_focus(self: &Self, e: &FocusChangedEventArgs)
    

    Called when the control or one of its child elements gets focus.

    Source

    on_lost_focus

    fn on_lost_focus(self: &Self, e: &FocusChangedEventArgs)
    

    Called when the control or one of its child elements loses focus.

    Source

    on_key_down

    fn on_key_down(self: &Self, e: &KeyEventArgs)
    

    Called before the key down event occurs.

    Source

    on_key_up

    fn on_key_up(self: &Self, e: &KeyEventArgs)
    

    Called before the key up event occurs.

    Source

    on_text_input

    fn on_text_input(self: &Self, e: &TextInputEventArgs)
    

    Called before the text input event occurs.

    Source

    on_pointer_entered

    fn on_pointer_entered(self: &Self, e: &PointerEventArgs)
    

    Called before the pointer entered event occurs.

    Source

    on_pointer_exited

    fn on_pointer_exited(self: &Self, e: &PointerEventArgs)
    

    Called before the pointer exited event occurs.

    Source

    on_pointer_moved

    fn on_pointer_moved(self: &Self, e: &PointerEventArgs)
    

    Called before the pointer moved event occurs.

    Source

    on_pointer_pressed

    fn on_pointer_pressed(self: &Self, e: &PointerPressedEventArgs)
    

    Called before the pointer pressed event occurs.

    Source

    on_pointer_released

    fn on_pointer_released(self: &Self, e: &PointerReleasedEventArgs)
    

    Called before the pointer released event occurs.

    Source

    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.

    Source

    on_pointer_capture_lost

    fn on_pointer_capture_lost(self: &Self, e: &PointerCaptureLostEventArgs)
    

    Called before the pointer capture lost event occurs.

    Source

    on_pointer_wheel_changed

    fn on_pointer_wheel_changed(self: &Self, e: &PointerWheelEventArgs)
    

    Called before the pointer wheel changed event occurs.

    Source

    on_tapped

    fn on_tapped(self: &Self, e: &TappedEventArgs)
    

    Called when a tap gesture occurs on the control.

    Source

    on_right_tapped

    fn on_right_tapped(self: &Self, e: &TappedEventArgs)
    

    Called when a right tap gesture occurs on the control.

    Source

    on_double_tapped

    fn on_double_tapped(self: &Self, e: &TappedEventArgs)
    

    Called when a double-tap gesture occurs on the control.

    Source

    on_holding

    fn on_holding(self: &Self, e: &HoldingRoutedEventArgs)
    

    Called when a hold gesture occurs on the control.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    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.

    Source

    as_scrollable

    fn as_scrollable(self: &Self) -> Option<&dyn IScrollable>
    

    The element as a scrollable, if it is one.

    Source

    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.

    Source

    focusable_property

    fn focusable_property() -> &'static StyledProperty<bool>
    

    Defines the Focusable property.

    Source

    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.

    Source

    is_enabled_property

    fn is_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsEnabled property.

    Source

    is_effectively_enabled_property

    fn is_effectively_enabled_property() -> &'static DirectProperty<InputElement, bool>
    

    Defines the IsEffectivelyEnabled property.

    Source

    cursor_property

    fn cursor_property() -> &'static StyledProperty<Option<Rc<Cursor>>>
    

    Gets or sets associated mouse cursor.

    Source

    is_keyboard_focus_within_property

    fn is_keyboard_focus_within_property() -> &'static DirectProperty<InputElement, bool>
    

    Defines the IsKeyboardFocusWithin property.

    Source

    is_focused_property

    fn is_focused_property() -> &'static DirectProperty<InputElement, bool>
    

    Defines the IsFocused property.

    Source

    is_hit_test_visible_property

    fn is_hit_test_visible_property() -> &'static StyledProperty<bool>
    

    Defines the IsHitTestVisible property.

    Source

    is_pointer_over_property

    fn is_pointer_over_property() -> &'static DirectProperty<InputElement, bool>
    

    Defines the IsPointerOver property.

    Source

    is_tab_stop_property

    fn is_tab_stop_property() -> &'static StyledProperty<bool>
    

    Defines the IsTabStop property.

    Source

    tab_index_property

    fn tab_index_property() -> &'static StyledProperty<i32>
    

    Defines the TabIndex property.

    Source

    got_focus_event

    fn got_focus_event() -> &'static RoutedEvent<FocusChangedEventArgs>
    

    Defines the GotFocus event.

    Source

    getting_focus_event

    fn getting_focus_event() -> &'static RoutedEvent<FocusChangingEventArgs>
    

    Defines the GettingFocus event.

    Source

    lost_focus_event

    fn lost_focus_event() -> &'static RoutedEvent<FocusChangedEventArgs>
    

    Defines the LostFocus event.

    Source

    losing_focus_event

    fn losing_focus_event() -> &'static RoutedEvent<FocusChangingEventArgs>
    

    Defines the LosingFocus event.

    Source

    key_down_event

    fn key_down_event() -> &'static RoutedEvent<KeyEventArgs>
    

    Defines the KeyDown event.

    Source

    key_up_event

    fn key_up_event() -> &'static RoutedEvent<KeyEventArgs>
    

    Defines the KeyUp event.

    Source

    text_input_event

    fn text_input_event() -> &'static RoutedEvent<TextInputEventArgs>
    

    Defines the TextInput event.

    Source

    text_input_method_client_requested_event

    fn text_input_method_client_requested_event() -> &'static RoutedEvent<TextInputMethodClientRequestedEventArgs>
    

    Defines the TextInputMethodClientRequested event.

    Source

    pointer_entered_event

    fn pointer_entered_event() -> &'static RoutedEvent<PointerEventArgs>
    

    Defines the PointerEntered event.

    Source

    pointer_exited_event

    fn pointer_exited_event() -> &'static RoutedEvent<PointerEventArgs>
    

    Defines the PointerExited event.

    Source

    pointer_moved_event

    fn pointer_moved_event() -> &'static RoutedEvent<PointerEventArgs>
    

    Defines the PointerMoved event.

    Source

    pointer_pressed_event

    fn pointer_pressed_event() -> &'static RoutedEvent<PointerPressedEventArgs>
    

    Defines the PointerPressed event.

    Source

    pointer_released_event

    fn pointer_released_event() -> &'static RoutedEvent<PointerReleasedEventArgs>
    

    Defines the PointerReleased event.

    Source

    pointer_capture_changing_event

    fn pointer_capture_changing_event() -> &'static RoutedEvent<PointerCaptureChangingEventArgs>
    

    Defines the PointerCaptureChanging routed event.

    Source

    pointer_capture_lost_event

    fn pointer_capture_lost_event() -> &'static RoutedEvent<PointerCaptureLostEventArgs>
    

    Defines the PointerCaptureLost routed event.

    Source

    pointer_wheel_changed_event

    fn pointer_wheel_changed_event() -> &'static RoutedEvent<PointerWheelEventArgs>
    

    Defines the PointerWheelChanged event.

    Source

    context_requested_event

    fn context_requested_event() -> &'static RoutedEvent<ContextRequestedEventArgs>
    

    Provides event data for the ContextRequested event.

    Source

    context_canceled_event

    fn context_canceled_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Provides event data for the ContextCanceled event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see crate::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    got_focus

    fn got_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the control receives focus.

    Source

    getting_focus

    fn getting_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs before the control receives focus.

    Source

    lost_focus

    fn lost_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the control loses focus.

    Source

    losing_focus

    fn losing_focus(self: &Self, handler: impl Fn(&Interactive, &FocusChangingEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs before the control loses focus.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    pointer_entered

    fn pointer_entered(self: &Self, handler: impl Fn(&Interactive, &PointerEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the pointer enters the control.

    Source

    pointer_exited

    fn pointer_exited(self: &Self, handler: impl Fn(&Interactive, &PointerEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the pointer leaves the control.

    Source

    pointer_moved

    fn pointer_moved(self: &Self, handler: impl Fn(&Interactive, &PointerEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the pointer moves over the control.

    Source

    pointer_pressed

    fn pointer_pressed(self: &Self, handler: impl Fn(&Interactive, &PointerPressedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the pointer is pressed over the control.

    Source

    pointer_released

    fn pointer_released(self: &Self, handler: impl Fn(&Interactive, &PointerReleasedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the pointer is released over the control.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    focusable

    fn focusable(self: &Self) -> bool
    

    Whether the control can receive focus.

    Source

    set_focusable

    fn set_focusable(self: &Self, value: bool)
    

    Source

    allow_focus_on_interaction

    fn allow_focus_on_interaction(self: &Self) -> bool
    

    Source

    set_allow_focus_on_interaction

    fn set_allow_focus_on_interaction(self: &Self, value: bool)
    

    Source

    is_enabled

    fn is_enabled(self: &Self) -> bool
    

    Whether the control is enabled for user interaction.

    Source

    set_is_enabled

    fn set_is_enabled(self: &Self, value: bool)
    

    Source

    cursor

    fn cursor(self: &Self) -> Option<Rc<Cursor>>
    

    The associated mouse cursor.

    Source

    set_cursor

    fn set_cursor(self: &Self, value: Option<Rc<Cursor>>)
    

    Source

    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.

    Source

    is_focused

    fn is_focused(self: &Self) -> bool
    

    Whether the control is focused.

    Source

    is_hit_test_visible

    fn is_hit_test_visible(self: &Self) -> bool
    

    Whether the control is considered for hit testing.

    Source

    set_is_hit_test_visible

    fn set_is_hit_test_visible(self: &Self, value: bool)
    

    Source

    is_pointer_over

    fn is_pointer_over(self: &Self) -> bool
    

    Whether the pointer is currently over the control.

    Source

    is_tab_stop

    fn is_tab_stop(self: &Self) -> bool
    

    Whether the control is included in tab navigation.

    Source

    set_is_tab_stop

    fn set_is_tab_stop(self: &Self, value: bool)
    

    Source

    is_effectively_enabled

    fn is_effectively_enabled(self: &Self) -> bool
    

    Whether this control and all its parents are enabled.

    Source

    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.

    Source

    set_tab_index

    fn set_tab_index(self: &Self, value: i32)
    

    Source

    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.

    Source

    gesture_recognizers

    fn gesture_recognizers(self: &Self) -> GestureRecognizerCollection
    

    The gesture recognizers attached to this input element.

    Source

    focus

    fn focus(self: &Self) -> bool
    

    Focuses the control, with an unspecified navigation method and no key modifiers. Returns whether the control was focused.

    Source

    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.

    Source

    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.

    Source

    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).

    Source

    is_holding_enabled_property

    fn is_holding_enabled_property() -> &'static AttachedProperty<bool>
    

    Defines the IsHoldingEnabled attached property.

    Source

    is_hold_with_mouse_enabled_property

    fn is_hold_with_mouse_enabled_property() -> &'static AttachedProperty<bool>
    

    Defines the IsHoldWithMouseEnabled attached property.

    Source

    pinch_event

    fn pinch_event() -> &'static RoutedEvent<PinchEventArgs>
    

    Defines the Pinch event.

    Source

    pinch_ended_event

    fn pinch_ended_event() -> &'static RoutedEvent<PinchEndedEventArgs>
    

    Defines the PinchEnded event.

    Source

    pull_gesture_event

    fn pull_gesture_event() -> &'static RoutedEvent<PullGestureEventArgs>
    

    Defines the PullGesture event.

    Source

    pull_gesture_ended_event

    fn pull_gesture_ended_event() -> &'static RoutedEvent<PullGestureEndedEventArgs>
    

    Defines the PullGestureEnded event.

    Source

    swipe_gesture_event

    fn swipe_gesture_event() -> &'static RoutedEvent<SwipeGestureEventArgs>
    

    Defines the SwipeGesture event.

    Source

    swipe_gesture_ended_event

    fn swipe_gesture_ended_event() -> &'static RoutedEvent<SwipeGestureEndedEventArgs>
    

    Defines the SwipeGestureEnded event.

    Source

    scroll_gesture_event

    fn scroll_gesture_event() -> &'static RoutedEvent<ScrollGestureEventArgs>
    

    Defines the ScrollGesture event.

    Source

    scroll_gesture_inertia_starting_event

    fn scroll_gesture_inertia_starting_event() -> &'static RoutedEvent<ScrollGestureInertiaStartingEventArgs>
    

    Defines the ScrollGestureInertiaStarting event.

    Source

    scroll_gesture_ended_event

    fn scroll_gesture_ended_event() -> &'static RoutedEvent<ScrollGestureEndedEventArgs>
    

    Defines the ScrollGestureEnded event.

    Source

    pointer_touch_pad_gesture_magnify_event

    fn pointer_touch_pad_gesture_magnify_event() -> &'static RoutedEvent<PointerDeltaEventArgs>
    

    Defines the PointerTouchPadGestureMagnify event.

    Source

    pointer_touch_pad_gesture_rotate_event

    fn pointer_touch_pad_gesture_rotate_event() -> &'static RoutedEvent<PointerDeltaEventArgs>
    

    Defines the PointerTouchPadGestureRotate event.

    Source

    pointer_touch_pad_gesture_swipe_event

    fn pointer_touch_pad_gesture_swipe_event() -> &'static RoutedEvent<PointerDeltaEventArgs>
    

    Defines the PointerTouchPadGestureSwipe event.

    Source

    tapped_event

    fn tapped_event() -> &'static RoutedEvent<TappedEventArgs>
    

    Defines the Tapped event.

    Source

    right_tapped_event

    fn right_tapped_event() -> &'static RoutedEvent<TappedEventArgs>
    

    Defines the RightTapped event.

    Source

    holding_event

    fn holding_event() -> &'static RoutedEvent<HoldingRoutedEventArgs>
    

    Defines the Holding event.

    Source

    double_tapped_event

    fn double_tapped_event() -> &'static RoutedEvent<TappedEventArgs>
    

    Defines the DoubleTapped event.

    Source

    get_is_holding_enabled

    fn get_is_holding_enabled(element: &StyledElement) -> bool
    

    Gets whether the holding gesture is enabled on an element.

    Source

    set_is_holding_enabled

    fn set_is_holding_enabled(element: &StyledElement, value: bool)
    

    Sets whether the holding gesture is enabled on an element.

    Source

    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.

    Source

    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.

    Source

    pinch

    fn pinch(self: &Self, handler: impl Fn(&Interactive, &PinchEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when the user moves two contact points closer together.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    scroll_gesture_ended

    fn scroll_gesture_ended(self: &Self, handler: impl Fn(&Interactive, &ScrollGestureEndedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs when a scroll gesture ends.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    Availability

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