Returns the bounding box of the element with the given ID, if it exists.
(&self, id: impl Into<Id>)
| 1061 | |
| 1062 | /// Returns the bounding box of the element with the given ID, if it exists. |
| 1063 | pub fn bounding_box(&self, id: impl Into<Id>) -> Option<math::BoundingBox> { |
| 1064 | self.context.get_element_data(id.into()) |
| 1065 | } |
| 1066 | |
| 1067 | /// Returns scroll container state for the element with the given ID, if it is a scroll container. |
| 1068 | pub fn scroll_container_data(&self, id: impl Into<Id>) -> Option<engine::ScrollContainerData> { |
nothing calls this directly
no test coverage detected