Skip to main content

Module prelude

Module prelude 

Source
Expand description

The picking prelude.

This includes the most common types in this crate, re-exported for your convenience.

Structs§

DefaultPickingPlugins
One plugin that contains the PointerInputPlugin, PickingPlugin and the InteractionPlugin, this is probably the plugin that will be most used.
DragEntry
Dragging state.
HoveredEntityAncestors
A cache map containing the ancestry of hovered entities
InteractionPlugin
Generates Pointer events and handles event bubbling.
Pickable
An optional component that marks an entity as usable by a backend, and overrides default picking behavior for an entity.
PickingMessageWriters
A helper system param for accessing the picking event writers.
PickingPlugin
This plugin sets up the core picking infrastructure. It receives input events, and provides the shared types used by other picking plugins.
Pointer
Stores the common data needed for all pointer events.
PointerButtonState
An entry in the cache that drives the pointer_events system, storing additional data about pointer button presses.
PointerCancel
Fires when a pointer is canceled, and its current interaction state is dropped.
PointerCaptureMap
Overrides the HoverMap for captured pointers, forcing a single entity to be reported as hovered regardless of where the pointer physically is.
PointerClick
Fires when a pointer sends a pointer pressed event followed by a pointer released event, with the same target entity for both events.
PointerDrag
Fires while the target entity is being dragged.
PointerDragDrop
Fires when a pointer drops the dropped entity onto the target entity.
PointerDragEnd
Fires when a pointer is dragging the target entity and a pointer released event is received.
PointerDragEnter
Fires when a pointer dragging the dragged entity enters the target entity
PointerDragLeave
Fires when a pointer dragging the dragged entity leaves the target entity.
PointerDragOver
Fires while the dragged entity is being dragged over the target entity.
PointerDragStart
Fires when the target entity receives a pointer pressed event followed by a pointer move event.
PointerEnter
Fires when a pointer crosses into the bounds of a target entity. Unlike PointerOver, this event bubbles up through a subset of the target entity’s ancestors (traversed via the ChildOf relationship).
PointerInputPlugin
Adds mouse and touch inputs for picking pointers to your app. This is a default input plugin, that you can replace with your own plugin as needed.
PointerLeave
Fires when a pointer crosses out of the bounds of a target entity. Unlike PointerOut, this event bubbles up through a subset of the target entity’s ancestors (traversed via the ChildOf relationship).
PointerMove
Fires while a pointer is moving over the target entity.
PointerOut
Fires when a pointer crosses out of the bounds of a target entity. Unlike PointerLeave, this event bubbles up to all of the target entity’s ancestors (traversed via the ChildOf relationship) without restriction. Refer to pointer_events for more information on how these events are triggered. Refer to PointerTraversal for how Pointer events are propagated.
PointerOver
Fires when a pointer crosses into the bounds of a target entity. Unlike PointerEnter, this event bubbles up to all of the target entity’s ancestors (traversed via the ChildOf relationship) without restriction. Refer to pointer_events for more information on how these events are triggered. Refer to PointerTraversal for how Pointer events are propagated.
PointerPress
Fires when a pointer button is pressed over the target entity.
PointerRelease
Fires when a pointer button is released over the target entity.
PointerScroll
Fires while a pointer is scrolling over the target entity.
PointerState
State for all pointers.
PointerTraversal
A traversal query (i.e. it implements Traversal) intended for use with Pointer events.
PointerTraversalItem
Automatically generated WorldQuery item type for PointerTraversal, returned when iterating over query results.

Enums§

PointerButton
The button that was just pressed or released

Traits§

PointerEvent
An EntityEvent that contains a Pointer.

Functions§

pointer_events
Dispatches interaction events to the target entities.