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,
)
| 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 |
no test coverage detected