MCPcopy Create free account
hub / github.com/AccessKit/accesskit / node_at_point

Method node_at_point

consumer/src/node.rs:372–378  ·  view source on GitHub ↗

Returns the deepest filtered node, either this node or a descendant, at the given point in this node's coordinate space.

(
        &self,
        point: Point,
        filter: &impl Fn(&Node) -> FilterResult,
    )

Source from the content-addressed store, hash-verified

370 /// Returns the deepest filtered node, either this node or a descendant,
371 /// at the given point in this node's coordinate space.
372 pub fn node_at_point(
373 &self,
374 point: Point,
375 filter: &impl Fn(&Node) -> FilterResult,
376 ) -> Option<Node<'a>> {
377 self.hit_test(point, filter).map(|(node, _)| node)
378 }
379
380 pub fn id(&self) -> NodeId {
381 self.id

Callers 5

accessible_at_pointMethod · 0.80
virtual_view_at_pointMethod · 0.80
hit_testMethod · 0.80
hit_testMethod · 0.80

Calls 2

mapMethod · 0.80
hit_testMethod · 0.45

Tested by

no test coverage detected