Skip to main content

HitTestTarget

Trait HitTestTarget 

Source
pub trait HitTestTarget {
    // Required methods
    fn dispatch(&self, event: PointerEvent);
    fn node_id(&self) -> NodeId;
}
Expand description

Trait implemented by hit-test targets stored inside a RenderScene.

Required Methods§

Source

fn dispatch(&self, event: PointerEvent)

Dispatches a pointer event to this target’s handlers.

Source

fn node_id(&self) -> NodeId

Returns the NodeId associated with this hit target. Used by HitPathTracker to cache stable identity instead of geometry.

Implementors§