Skip to main content

Module tracker

Module tracker 

Source
Expand description

Reusable zero-allocation stateful interaction tracker (InteractionTracker) shared by every scene consumer (LaidOutScene, SkiaBackend, the runtime pointer-resolution stage).

Tracks leaf-to-root ancestor chains for :hover, :active and :drag-over, the active pointers and their W3C capture (PointerTable), :focus + FocusModality (:focus-visible), and :disabled. :hover follows the primary hover-capable pointer (mouse, hovering pen); :active and Press follow the primary pointer only, so a second finger never steals them. All steady-state transitions reuse internal scratch buffers with zero heap allocations.

  • [chains]: hover / active / drag-over chain transitions and their dirty sets.
  • [focus]: focus and modality.
  • pointers: the fixed-capacity PointerTable.

Re-exports§

pub use pointers::CaptureError;
pub use pointers::CaptureTransition;
pub use pointers::PointerCaptureRequest;
pub use pointers::PointerKey;
pub use pointers::PointerType;
pub use pointers::PointerOverflow;
pub use pointers::PointerSlot;
pub use pointers::PointerTable;

Modules§

pointers
Fixed-capacity multi-pointer table with W3C Pointer Events capture semantics.

Structs§

InteractionTracker
Reusable stateful interaction tracker (see the module docs).
PointerEnd
What ending a pointer (up or cancel) released.

Constants§

MAX_ACTIVE_POINTERS
Capacity of the core PointerTable (simultaneously tracked active pointers).