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

Method bounding_box

consumer/src/node.rs:315–319  ·  view source on GitHub ↗

Returns the node's transformed bounding box relative to the tree's container (e.g. window).

(&self)

Source from the content-addressed store, hash-verified

313 /// Returns the node's transformed bounding box relative to the tree's
314 /// container (e.g. window).
315 pub fn bounding_box(&self) -> Option<Rect> {
316 self.raw_bounds()
317 .as_ref()
318 .map(|rect| self.transform().transform_rect_bbox(*rect))
319 }
320
321 pub(crate) fn bounding_box_in_coordinate_space(&self, other: &Node) -> Option<Rect> {
322 self.raw_bounds()

Callers 7

common_filterFunction · 0.80
originMethod · 0.80
extentsMethod · 0.80
BoundingRectangleMethod · 0.80
populate_node_infoMethod · 0.80
frame_sourceMethod · 0.80

Calls 4

mapMethod · 0.80
raw_boundsMethod · 0.80
transform_rect_bboxMethod · 0.80
transformMethod · 0.80

Tested by

no test coverage detected