Returns the node's transformed bounding box relative to the tree's container (e.g. window).
(&self)
| 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() |
no test coverage detected