Skip to main content

annotate_pointer_norms

Function annotate_pointer_norms 

Source
pub fn annotate_pointer_norms<G: PointerGeometry + ?Sized>(
    store: &NodeStore,
    events: &mut EventBatchBuf,
    geometry: &G,
)
Expand description

Attaches norms in place to every positioned pointer event (PointerDown / Move / Up) that lacks one: one PointerGeometry::local_rect call per such event, none otherwise. When a PointerDown targets an owner subscribed to LayoutEvent::Layout, inserts the owner’s live visual rect immediately ahead of that PointerDown so handlers reading both layout bounds and pointer norms see exact geometry. Allocation-free when no Layout event is inserted.