pub struct Interaction {
pub hovered: Option<Target>,
pub focused: Option<Target>,
pub pressed: Option<Target>,
pub editor: Option<TextEdit>,
/* private fields */
}Fields§
§hovered: Option<Target>§focused: Option<Target>§pressed: Option<Target>§editor: Option<TextEdit>Implementations§
Source§impl Interaction
impl Interaction
pub fn begin_text_composition(&mut self, scene: &Node, id: u64) -> bool
pub fn update_text_composition( &mut self, scene: &Node, id: u64, text: String, ) -> bool
pub fn finish_text_composition(&mut self, scene: &Node, id: u64) -> (bool, bool)
pub fn cancel_text_composition(&mut self, id: Option<u64>) -> bool
Source§impl Interaction
impl Interaction
pub fn begin_pointer_sequence( &self, scene: &Node, layout: &LayoutNode, point: Point, event: PointerEvent, now: Instant, ) -> Option<(PointerSequence, PointerDelivery)>
pub fn direct_pointer_claimed(&self) -> bool
pub fn owns_pointer_press(&self, target: &Target) -> bool
pub fn cancel_pointer_activation(&mut self, target: &Target)
pub fn wheel_route( &self, scene: &Node, layout: &LayoutNode, event: WheelEvent, ) -> Option<WheelRoute>
pub fn update_tooltip( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> bool
pub fn tooltip_deadline(&self) -> Option<Instant>
pub fn dismiss_tooltip(&mut self) -> bool
pub fn tooltip_popup<'a>( &self, scene: &'a Node, layout: &LayoutNode, ) -> Option<TooltipPopup<'a>>
pub fn overlay_layers<'a>( &'a self, layout: &'a LayoutNode, ) -> impl DoubleEndedIterator<Item = &'a [usize]> + 'a
pub fn dialog_layers<'a>( &'a self, layout: &'a LayoutNode, ) -> impl DoubleEndedIterator<Item = &'a [usize]> + 'a
pub fn allows_popup(&self, layout: &LayoutNode, path: &[usize]) -> bool
pub fn arm_drag(&mut self, scene: &Node, layout: &LayoutNode, point: Point)
pub fn drag_motion( &mut self, scene: &Node, layout: &LayoutNode, point: Point, requested: Option<DragAction>, ) -> DragUpdate
pub fn finish_drag( &mut self, scene: &Node, layout: &LayoutNode, point: Point, requested: Option<DragAction>, ) -> DragUpdate
pub fn cancel_drag(&mut self) -> DragUpdate
pub fn reconcile_drag( &mut self, scene: &Node, layout: &LayoutNode, requested: Option<DragAction>, ) -> DragUpdate
pub fn drag_position(&self) -> Option<Point>
pub fn drag_action(&self) -> Option<DragAction>
pub fn is_drop_target(&self, node: &Node, path: &[usize]) -> bool
pub fn file_drop_scope(&self, layout: &LayoutNode) -> FileDropScope
pub fn file_drag_event( &mut self, scene: &Node, layout: &LayoutNode, input: FileDragInput, ) -> DragUpdate
pub fn reconcile_file_drag( &mut self, scene: &Node, layout: &LayoutNode, ) -> DragUpdate
pub fn clear_file_drag(&mut self)
pub fn popup_outside_press( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn dialog_accept( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn dialog_escape( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
Sourcepub fn dialog_pointer_press(&mut self, layout: &LayoutNode) -> bool
pub fn dialog_pointer_press(&mut self, layout: &LayoutNode) -> bool
Keep focus on the dialog when pressing its backdrop or empty panel area.
pub fn dialog_pointer_release( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn shortcut_press( &mut self, scene: &Node, layout: &LayoutNode, key: MenuShortcut, repeat: bool, now: Instant, ) -> ShortcutOutcome
pub fn cancel_shortcut_sequence(&mut self)
pub fn pointer_hover_target( &self, scene: &Node, layout: &LayoutNode, ) -> Option<Target>
pub fn scale_rotate_target_at( &self, scene: &Node, layout: &LayoutNode, point: Point, ) -> Option<ScaleRotateTarget>
pub fn window_gestures_allowed(&self, scene: &Node, layout: &LayoutNode) -> bool
Sourcepub fn window_resize_edge(
&self,
scene: &Node,
layout: &LayoutNode,
) -> Option<WindowResizeEdge>
pub fn window_resize_edge( &self, scene: &Node, layout: &LayoutNode, ) -> Option<WindowResizeEdge>
Hit the opt-in client resize border without covering interactive content.
pub fn arm_window_move(&mut self, scene: &Node, layout: &LayoutNode) -> bool
pub fn take_window_move( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> bool
pub fn cancel_window_move(&mut self) -> bool
Sourcepub fn sync_stack_transitions(&mut self, transitions: &StackTransitions) -> bool
pub fn sync_stack_transitions(&mut self, transitions: &StackTransitions) -> bool
Synchronize the pointer gate with the presentation state before reconciling input.
pub fn pointer_on_stack_slide(&self) -> bool
pub fn scroll_offsets(&self) -> &BTreeMap<Vec<usize>, f32>
pub fn horizontal_scroll_offsets(&self) -> &BTreeMap<Vec<usize>, f32>
pub fn pointer_position(&self) -> Option<Point>
pub fn pointer_press_origin(&self) -> Option<Point>
pub fn text_scroll(&self, path: &[usize]) -> Point
pub fn set_text_scroll(&mut self, target: &Target, offset: Point)
pub fn scroll_y(&mut self, layout: &LayoutNode, delta: f32) -> bool
pub fn scroll_x(&mut self, layout: &LayoutNode, delta: f32) -> bool
pub fn scroll_wheel( &mut self, layout: &LayoutNode, delta: Point, shift: bool, ) -> bool
Sourcepub fn accessibility_scroll_to(
&mut self,
layout: &LayoutNode,
path: &[usize],
orientation: Orientation,
offset: f32,
) -> bool
pub fn accessibility_scroll_to( &mut self, layout: &LayoutNode, path: &[usize], orientation: Orientation, offset: f32, ) -> bool
Scroll only the named container, without pointer hit testing or ancestor bubbling.
Sourcepub fn scroll_to_top(&mut self, scene: &Node, layout: &LayoutNode) -> bool
pub fn scroll_to_top(&mut self, scene: &Node, layout: &LayoutNode) -> bool
Return the primary vertical viewport in the active layer to its start.
Sourcepub fn scroll_bar_press(
&mut self,
scene: &Node,
layout: &LayoutNode,
) -> Option<ScrollBarUpdate>
pub fn scroll_bar_press( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ScrollBarUpdate>
Returns Some when the scroll bar captures the press.
Sourcepub fn scroll_bar_drag(
&mut self,
scene: &Node,
layout: &LayoutNode,
) -> Option<ScrollBarUpdate>
pub fn scroll_bar_drag( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ScrollBarUpdate>
Continue handling movement after the cursor leaves a captured thumb’s track.
pub fn release_scroll_bar( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ScrollBarUpdate>
pub fn scroll_bar_key( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ScrollBarUpdate>
pub fn finish_scroll_bar(&mut self) -> bool
pub fn scroll_bar_captured(&self) -> bool
pub fn touch_scroll_bar_press( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> Option<ScrollBarUpdate>
pub fn touch_scroll_bar_drag( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> ScrollBarUpdate
pub fn finish_touch_scroll_bar(&mut self) -> bool
pub fn release_touch_scroll_bar( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> Option<ScrollBarUpdate>
pub fn scroll_bar_highlighted( &self, path: &[usize], orientation: Orientation, ) -> bool
Sourcepub fn arm_mouse_viewport_pan(
&mut self,
scene: &Node,
layout: &LayoutNode,
point: Point,
now: Instant,
) -> bool
pub fn arm_mouse_viewport_pan( &mut self, scene: &Node, layout: &LayoutNode, point: Point, now: Instant, ) -> bool
Arm a left-button pan after ordinary press handling. The press stays with its original control until movement crosses the drag threshold.
pub fn mouse_viewport_pan_claimed(&self) -> bool
Sourcepub fn begin_scroll_gesture(
&mut self,
scene: &Node,
layout: &LayoutNode,
point: Point,
now: Instant,
kind: ScrollGestureKind,
) -> bool
pub fn begin_scroll_gesture( &mut self, scene: &Node, layout: &LayoutNode, point: Point, now: Instant, kind: ScrollGestureKind, ) -> bool
Capture scroll owners at contact start. Touches become taps only on release.
pub fn move_scroll_gesture( &mut self, scene: &Node, layout: &LayoutNode, point: Point, now: Instant, ) -> bool
pub fn end_scroll_gesture( &mut self, scene: &Node, layout: &LayoutNode, point: Point, now: Instant, ) -> ScrollGestureEnd
pub fn advance_scroll_motion( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> bool
pub fn tab_move_active(&self) -> bool
pub fn tab_move_marker( &self, bar: &Node, item: &LayoutNode, path: &[usize], ) -> Option<Rect>
pub fn advance_tumbler_motion( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> ScrollGestureEnd
pub fn scroll_motion_active(&self) -> bool
pub fn scroll_motion_deadline(&self) -> Option<Instant>
pub fn tumbler_preview(&self) -> Option<(&[usize], f32)>
pub fn has_switch_preview(&self) -> bool
pub fn has_swipe_preview(&self) -> bool
pub fn swipe_preview(&self) -> Option<(&[usize], Option<RowKey>, f32)>
pub fn tumbler_scroll( &mut self, scene: &Node, layout: &LayoutNode, delta: f32, lines: bool, ) -> TumblerScroll
pub fn reset_wheel_adjustment(&mut self)
pub fn wheel_adjustment( &mut self, scene: &Node, layout: &LayoutNode, event: WheelEvent, now: Instant, ) -> Option<WheelAdjustment>
pub fn tumbler_key( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
Sourcepub fn reduce_motion(&self) -> bool
pub fn reduce_motion(&self) -> bool
Whether the host has requested reduced motion.
Sourcepub fn pull_to_refresh_progress(&self, node: &Node) -> Option<f32>
pub fn pull_to_refresh_progress(&self, node: &Node) -> Option<f32>
The pull distance as a fraction of the refresh threshold.
pub fn cancel_scroll_gesture(&mut self)
pub fn overscroll_frame(&self) -> OverscrollFrame
pub fn has_overscroll(&self) -> bool
pub fn has_pending_swipe_events(&self) -> bool
pub fn reconcile_swipe(&mut self, scene: &Node, layout: &LayoutNode)
pub fn take_swipe_events(&mut self) -> Vec<SwipeDelivery>
pub fn begin_pointer_delay( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, )
pub fn begin_key_delay( &mut self, scene: &Node, layout: &LayoutNode, key: ActivationKey, now: Instant, )
pub fn advance_delay( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> Option<ControlInput>
pub fn accessibility_delay_click( &mut self, scene: &Node, layout: &LayoutNode, target: Target, now: Instant, ) -> Option<ControlInput>
pub fn cancel_delay(&mut self) -> bool
pub fn delay_deadline(&self) -> Option<Instant>
pub fn delay_progress(&self, path: &[usize]) -> Option<(f32, bool)>
pub fn delay_accessibility(&self) -> Option<(&Target, bool)>
pub fn editor_value<'a>(&'a self, node: &'a Node) -> Cow<'a, str>
pub fn table_cell_editing(&self, path: &[usize]) -> bool
pub fn table_cell_edit_invalid(&self, node: &Node, path: &[usize]) -> bool
pub fn is_text_editor(&self, node: &Node, target: &Target) -> bool
pub fn table_cell_click( &mut self, scene: &Node, layout: &LayoutNode, target: Option<&Target>, now: Instant, ) -> bool
pub fn begin_table_edit(&mut self, scene: &Node, layout: &LayoutNode) -> bool
Sourcepub fn begin_accessible_table_edit(
&mut self,
scene: &Node,
layout: &LayoutNode,
target: Target,
) -> bool
pub fn begin_accessible_table_edit( &mut self, scene: &Node, layout: &LayoutNode, target: Target, ) -> bool
Start editing the addressed accessible cell using its current row identity.
pub fn begin_table_typing(&mut self, scene: &Node, layout: &LayoutNode) -> bool
pub fn cancel_table_edit(&mut self) -> bool
pub fn commit_table_edit( &mut self, component: &mut impl Component, scene: &Node, ) -> bool
pub fn finish_table_edit( &mut self, component: &mut impl Component, scene: &Node, ) -> TableEditCommit
pub fn tab_edit_origin(&self, scene: &Node) -> Option<TableEditTarget>
pub fn next_table_edit_target( &self, component: &impl Component, scene: &Node, layout: &LayoutNode, origin: &TableEditTarget, backward: bool, ) -> Option<TableEditTarget>
pub fn begin_table_edit_target( &mut self, scene: &Node, layout: &LayoutNode, target: &TableEditTarget, ) -> bool
pub fn sync_editor(&mut self, scene: &Node)
pub fn break_text_edit_group(&mut self)
pub fn edit_text( &mut self, component: &mut impl Component, scene: &Node, action: EditAction<'_>, source: EditSource, now: Instant, ) -> bool
pub fn clear_search( &mut self, component: &mut impl Component, scene: &Node, path: &[usize], now: Instant, ) -> bool
pub fn select_search_suggestion( &mut self, component: &mut impl Component, scene: &Node, index: usize, now: Instant, ) -> bool
pub fn replay_text_edit( &mut self, component: &mut impl Component, scene: &Node, redo: bool, ) -> bool
pub fn edit_spin(&mut self, node: &Node, action: EditAction<'_>)
pub fn edit_spin_from( &mut self, node: &Node, action: EditAction<'_>, source: EditSource, now: Instant, )
pub fn discard_spin_draft(&mut self)
pub fn commit_spin_draft(&mut self) -> Option<ControlInput>
pub fn spin_press(&mut self, scene: &Node, layout: &LayoutNode) -> bool
pub fn spin_release( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn combo_completion( &self, node: &Node, path: &[usize], ) -> Option<ComboCompletion>
pub fn set_painted_combo_completion( &mut self, completion: Option<ComboCompletion>, )
pub fn painted_combo_completion_for( &self, node: &Node, path: &[usize], ) -> Option<&ComboCompletion>
pub fn combo_completion_accepts(&self, key: NavigationKey) -> bool
pub fn accept_combo_completion( &mut self, component: &mut impl Component, scene: &Node, now: Instant, ) -> bool
pub fn dismiss_combo_completion(&mut self, scene: &Node) -> bool
pub fn open_choice( &mut self, scene: &Node, layout: &LayoutNode, target: Target, ) -> bool
pub fn open_choice_at_pointer( &mut self, scene: &Node, layout: &LayoutNode, target: Target, ) -> bool
pub fn choice_open(&self) -> bool
pub fn choice_is_open_for(&self, path: &[usize]) -> bool
pub fn dismiss_choice(&mut self)
pub fn choice_press(&mut self, scene: &Node, layout: &LayoutNode) -> bool
pub fn choice_release( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn choice_scroll( &mut self, scene: &Node, layout: &LayoutNode, rows: isize, ) -> bool
pub fn choice_key( &mut self, scene: &Node, layout: &LayoutNode, key: ChoiceKey, ) -> Option<ControlInput>
pub fn choice_typeahead( &mut self, scene: &Node, layout: &LayoutNode, text: &str, now: Instant, ) -> Option<ControlInput>
pub fn list_typeahead_focus(&self, scene: &Node) -> Option<&Target>
pub fn list_typeahead_ime_area( &self, scene: &Node, layout: &LayoutNode, ) -> Option<Rect>
pub fn reset_list_typeahead(&mut self)
pub fn list_typeahead( &mut self, scene: &Node, layout: &LayoutNode, text: &str, now: Instant, ) -> Option<ControlInput>
pub fn pointer_move( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> bool
pub fn pointer_leave(&mut self) -> bool
pub fn pointer_press(&mut self)
pub fn pointer_press_in_scene(&mut self, scene: &Node, layout: &LayoutNode)
Sourcepub fn replay_tap_in_scene(&mut self, scene: &Node, layout: &LayoutNode)
pub fn replay_tap_in_scene(&mut self, scene: &Node, layout: &LayoutNode)
Reuse click routing for a gesture that has already delivered its press lifecycle.
pub fn split_press(&mut self, scene: &Node, layout: &LayoutNode)
pub fn split_resize_active(&self) -> bool
pub fn touch_split_press( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> bool
pub fn split_orientation(&self, scene: &Node) -> Option<Orientation>
pub fn split_drag( &self, scene: &Node, layout: &LayoutNode, ) -> Option<SplitResize>
pub fn finish_split_resize(&mut self) -> bool
pub fn split_key( &self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<SplitResize>
Sourcepub fn split_set_value(
&self,
scene: &Node,
layout: &LayoutNode,
target: &Target,
value: f64,
) -> Option<SplitResize>
pub fn split_set_value( &self, scene: &Node, layout: &LayoutNode, target: &Target, value: f64, ) -> Option<SplitResize>
Set the leading pane size using the same limits and layout mode as a drag.
pub fn range_pointer_press( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> bool
pub fn touch_range_press( &mut self, scene: &Node, layout: &LayoutNode, point: Point, ) -> bool
pub fn touch_range_captured(&self) -> bool
pub fn finish_touch_range(&mut self)
pub fn slider_press( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<RangeInput>
pub fn slider_drag( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<RangeInput>
pub fn slider_preview(&self, path: &[usize]) -> Option<f64>
pub fn has_slider_preview(&self) -> bool
pub fn cancel_slider_preview(&mut self) -> bool
pub fn slider_release( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<RangeInput>
pub fn slider_key( &mut self, scene: &Node, layout: &LayoutNode, key: SliderKey, pressed: bool, ) -> Option<RangeInput>
Sourcepub fn accessibility_tab_close_target(
&self,
scene: &Node,
layout: &LayoutNode,
path: &[usize],
) -> Option<Target>
pub fn accessibility_tab_close_target( &self, scene: &Node, layout: &LayoutNode, path: &[usize], ) -> Option<Target>
Resolve a close affordance against the current scene and clipped header. Capture the offered tab and model revision for a native close button.
pub fn tab_close_action( &self, scene: &Node, layout: &LayoutNode, target: &Target, ) -> Option<ControlInput>
pub fn focused_tab_close( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn tab_close_hovered(&self, path: &[usize]) -> bool
pub fn select_group_option( &self, scene: &Node, layout: &LayoutNode, target: &Target, ) -> Option<ControlInput>
pub fn tree_pointer_action( &self, scene: &Node, layout: &LayoutNode, target: &Target, ) -> Option<ControlInput>
pub fn tree_has_focus(&self, scene: &Node, layout: &LayoutNode) -> bool
pub fn tree_toggle( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn tree_key( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
pub fn tree_key_with_selection( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, operation: RowSelection, ) -> Option<ControlInput>
pub fn select_group_option_with_selection( &self, scene: &Node, layout: &LayoutNode, target: &Target, operation: RowSelection, ) -> Option<ControlInput>
pub fn list_item_delegate_selection( &self, scene: &Node, layout: &LayoutNode, target: &Target, ) -> Option<ControlInput>
pub fn current_item_delegate( &self, scene: &Node, layout: &LayoutNode, view: &Target, ) -> Option<Target>
pub fn resolve_item_delegate( &self, scene: &Node, layout: &LayoutNode, view: &[usize], row: RowKey, ) -> Option<Target>
pub fn table_row_header_selection( &self, scene: &Node, layout: &LayoutNode, target: &Target, operation: RowSelection, ) -> Option<ControlInput>
Sourcepub fn press_table_reorder(&mut self, scene: &Node, layout: &LayoutNode) -> bool
pub fn press_table_reorder(&mut self, scene: &Node, layout: &LayoutNode) -> bool
Start the ordinary press route only on a movable table header.
Sourcepub fn table_row_header_move(
&self,
scene: &Node,
layout: &LayoutNode,
target: &Target,
direction: NavigationKey,
) -> Option<ControlInput>
pub fn table_row_header_move( &self, scene: &Node, layout: &LayoutNode, target: &Target, direction: NavigationKey, ) -> Option<ControlInput>
A row header’s accessible action can move its record without a pointer.
pub fn table_row_move_key( &self, scene: &Node, layout: &LayoutNode, direction: NavigationKey, ) -> Option<ControlInput>
Sourcepub fn table_delegate_selection(
&self,
scene: &Node,
layout: &LayoutNode,
target: &Target,
operation: RowSelection,
) -> Option<ControlInput>
pub fn table_delegate_selection( &self, scene: &Node, layout: &LayoutNode, target: &Target, operation: RowSelection, ) -> Option<ControlInput>
A cell’s component can receive its click after the table updates selection.
Sourcepub fn selection_key_action(
&self,
scene: &Node,
layout: &LayoutNode,
key: &str,
modifiers: KeyModifiers,
) -> Option<ControlInput>
pub fn selection_key_action( &self, scene: &Node, layout: &LayoutNode, key: &str, modifiers: KeyModifiers, ) -> Option<ControlInput>
Resolve a selection shortcut in the current focus scope.
pub fn tree_selection_key( &self, scene: &Node, layout: &LayoutNode, key: TableSelectionKey, ) -> Option<ControlInput>
pub fn table_selection_key( &self, scene: &Node, key: TableSelectionKey, ) -> Option<ControlInput>
pub fn table_edit_history_target<'a>( &'a self, scene: &Node, layout: &LayoutNode, ) -> Option<&'a [usize]>
pub fn table_copy_target( &self, scene: &Node, layout: &LayoutNode, ) -> Option<(Vec<usize>, Vec<usize>)>
pub fn table_paste_target( &self, scene: &Node, layout: &LayoutNode, ) -> Option<TablePasteDestination>
pub fn list_key_with_selection( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, operation: RowSelection, ) -> Option<ControlInput>
pub fn list_key( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
Sourcepub fn tab_move_key(
&self,
scene: &Node,
layout: &LayoutNode,
key: NavigationKey,
) -> Option<Option<ControlInput>>
pub fn tab_move_key( &self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<Option<ControlInput>>
An outer Some consumes the shortcut even at the first or last movable tab.
pub fn group_key( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
pub fn swipe_key( &mut self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
pub fn swipe_delegate_key( &self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
pub fn swipe_delegate_accessibility( &self, scene: &Node, layout: &LayoutNode, target: &Target, expand: bool, ) -> Option<ControlInput>
pub fn dismiss_focused_swipe( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn stack_back( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
Sourcepub fn stack_back_in_window(
&self,
scene: &Node,
layout: &LayoutNode,
) -> Option<ControlInput>
pub fn stack_back_in_window( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
Resolve window-level Back when focus is outside a navigation stack. A focused stack wins; otherwise require one visible innermost candidate.
pub fn pointer_release(&mut self) -> Option<&'static str>
pub fn page_marker_release( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn control_part_release( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn page_marker_hovered(&self, path: &[usize], index: usize) -> bool
pub fn page_indicator_key( &self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
pub fn calendar_key( &self, scene: &Node, layout: &LayoutNode, key: NavigationKey, ) -> Option<ControlInput>
pub fn text_link_target( &self, scene: &Node, layout: &LayoutNode, path: &[usize], index: usize, ) -> Option<Target>
pub fn text_link_activation( &self, scene: &Node, layout: &LayoutNode, target: &Target, ) -> Option<ControlInput>
pub fn calendar_activate( &self, scene: &Node, layout: &LayoutNode, target: &Target, ) -> Option<ControlInput>
pub fn pointer_release_target(&mut self) -> Option<Target>
pub fn table_sort_release(&mut self) -> Option<ControlInput>
pub fn table_header_release( &mut self, scene: &Node, operation: RowSelection, sort: bool, ) -> Option<ControlInput>
pub fn table_column_hovered(&self, path: &[usize], column: usize) -> bool
Sourcepub fn arm_table_drag_selection(
&mut self,
scene: &Node,
layout: &LayoutNode,
additive: bool,
) -> bool
pub fn arm_table_drag_selection( &mut self, scene: &Node, layout: &LayoutNode, additive: bool, ) -> bool
Arm a mouse selection after the ordinary click and drag-source routes are resolved.
Sourcepub fn press_table_drag_selection(
&mut self,
scene: &Node,
layout: &LayoutNode,
additive: bool,
) -> bool
pub fn press_table_drag_selection( &mut self, scene: &Node, layout: &LayoutNode, additive: bool, ) -> bool
Press a table cell only if it can arm a drag selection.
Sourcepub fn advance_table_touch_hold(
&mut self,
scene: &Node,
layout: &LayoutNode,
now: Instant,
) -> bool
pub fn advance_table_touch_hold( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> bool
Claim an undragged press when the table’s hold deadline expires.
pub fn table_touch_hold_deadline(&self) -> Option<Instant>
Sourcepub fn table_selection_handles(
&self,
path: &[usize],
node: &Node,
item: &LayoutNode,
) -> impl Iterator<Item = Rect>
pub fn table_selection_handles( &self, path: &[usize], node: &Node, item: &LayoutNode, ) -> impl Iterator<Item = Rect>
The hit bounds of the visible handles, in the table’s layout coordinates.
Sourcepub fn table_selection_handle_parts(
&self,
path: &[usize],
node: &Node,
item: &LayoutNode,
) -> impl Iterator<Item = (usize, Rect)>
pub fn table_selection_handle_parts( &self, path: &[usize], node: &Node, item: &LayoutNode, ) -> impl Iterator<Item = (usize, Rect)>
Keep the start/end slot identity even when one corner is clipped.
pub fn press_table_selection_handle( &mut self, scene: &Node, layout: &LayoutNode, ) -> bool
pub fn touch_table_selection_claimed(&self) -> bool
pub fn touch_table_drag_claimed(&self) -> bool
pub fn scroll_table_drag_claimed(&self) -> bool
pub fn cancel_scroll_table_drag(&mut self) -> bool
pub fn cancel_table_touch_drag(&mut self) -> bool
pub fn table_drag_selection_armed(&self) -> bool
pub fn move_table_drag_selection( &mut self, layout: &LayoutNode, now: Instant, ) -> bool
pub fn table_drag_selection_claimed(&self) -> bool
pub fn cancel_table_drag_selection(&mut self) -> bool
pub fn finish_table_drag_selection( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn table_drag_preview( &self, path: &[usize], node: &Node, layout: &LayoutNode, ) -> Vec<Rect>
pub fn table_drag_selection_deadline( &self, scene: &Node, layout: &LayoutNode, ) -> Option<Instant>
pub fn advance_table_drag_selection( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> bool
pub fn table_column_move_drag( &mut self, layout: &LayoutNode, now: Instant, ) -> bool
pub fn table_row_move_drag(&mut self, layout: &LayoutNode, now: Instant) -> bool
pub fn table_row_move_claimed(&self) -> bool
pub fn cancel_table_row_move(&mut self) -> bool
pub fn table_row_move_marker( &self, path: &[usize], node: &Node, layout: &LayoutNode, ) -> Option<Rect>
pub fn table_row_move_source( &self, path: &[usize], node: &Node, ) -> Option<RowKey>
pub fn table_row_move_deadline( &self, scene: &Node, layout: &LayoutNode, ) -> Option<Instant>
pub fn advance_table_row_move( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> bool
pub fn finish_table_row_move( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn table_column_move_claimed(&self) -> bool
pub fn table_column_move_deadline( &self, scene: &Node, layout: &LayoutNode, ) -> Option<Instant>
pub fn advance_table_column_move( &mut self, scene: &Node, layout: &LayoutNode, now: Instant, ) -> bool
pub fn table_column_move_marker( &self, path: &[usize], node: &Node, layout: &LayoutNode, ) -> Option<f32>
pub fn finish_table_column_move( &mut self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn table_resize_drag( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn finish_table_resize(&mut self) -> bool
pub fn table_resize_cursor(&self) -> bool
pub fn table_row_resize_cursor(&self) -> bool
pub fn table_resize_row(&self, path: &[usize]) -> Option<RowKey>
pub fn table_row_resize_drag( &self, scene: &Node, layout: &LayoutNode, ) -> Option<ControlInput>
pub fn table_resize_column(&self, path: &[usize]) -> Option<usize>
pub fn reconcile(&mut self, scene: &Node, layout: &LayoutNode)
Sourcepub fn focus_next(
&mut self,
scene: &Node,
layout: &LayoutNode,
reverse: bool,
) -> bool
pub fn focus_next( &mut self, scene: &Node, layout: &LayoutNode, reverse: bool, ) -> bool
Move focus, returning whether revealing the focused tab requires layout.
Sourcepub fn accessibility_target(
&self,
scene: &Node,
layout: &LayoutNode,
path: &[usize],
) -> Option<Target>
pub fn accessibility_target( &self, scene: &Node, layout: &LayoutNode, path: &[usize], ) -> Option<Target>
Resolve an accessibility action through the current modal and layout scope.
pub fn remember_focus_scope(&mut self, scene: &Node, layout: &LayoutNode)
pub fn key_route(&self, scene: &Node, layout: &LayoutNode) -> Option<KeyRoute>
pub fn discard_range_key(&mut self, key: SliderKey)
Sourcepub fn focus_target(
&mut self,
scene: &Node,
layout: &LayoutNode,
target: Target,
)
pub fn focus_target( &mut self, scene: &Node, layout: &LayoutNode, target: Target, )
A focus request uses the same scene eligibility and modal gate as native input.
pub fn apply_focus_requests( &mut self, scene: &Node, layout: &LayoutNode, requests: impl IntoIterator<Item = FocusRequest>, )
Sourcepub fn apply_focus_request(
&mut self,
scene: &Node,
layout: &LayoutNode,
request: FocusRequest,
) -> Option<TextCommand>
pub fn apply_focus_request( &mut self, scene: &Node, layout: &LayoutNode, request: FocusRequest, ) -> Option<TextCommand>
Apply a focus command or resolve a text command against the current editor.
pub fn apply_text_selection(&mut self, scene: &Node, command: TextCommand)
pub fn accessibility_focus(&mut self, target: Target)
pub fn key_press(&mut self, key: ActivationKey)
pub fn key_press_with_scene(&mut self, scene: &Node, key: ActivationKey)
pub fn key_release(&mut self, key: ActivationKey) -> Option<&'static str>
pub fn key_release_target(&mut self, key: ActivationKey) -> Option<Target>
pub fn key_release_with_scene( &mut self, scene: &Node, key: ActivationKey, ) -> Option<Target>
pub fn cancel_press(&mut self)
pub fn is_hovered(&self, path: &[usize]) -> bool
pub fn is_focused(&self, path: &[usize]) -> bool
Publish pressed state only for observed buttons which still own a live input.
Publish the reactive state before delivering events to their original buttons.
pub fn is_pressed(&self, path: &[usize]) -> bool
Source§impl Interaction
impl Interaction
Sourcepub fn take_scroll_events(
&mut self,
scene: &Node,
layout: &LayoutNode,
) -> Vec<ScrollDelivery>
pub fn take_scroll_events( &mut self, scene: &Node, layout: &LayoutNode, ) -> Vec<ScrollDelivery>
Resolve movement after layout clamps offsets and replaces virtual rows.