| 538 | impl<CustomElementData: Clone + Default + std::fmt::Debug> Ply<CustomElementData> { |
| 539 | #[cfg(feature = "a11y")] |
| 540 | fn accessibility_bounds(&self) -> FxHashMap<u32, math::BoundingBox> { |
| 541 | let mut accessibility_bounds = FxHashMap::default(); |
| 542 | for &elem_id in &self.context.accessibility_element_order { |
| 543 | if let Some(bounds) = self.context.get_element_data(Id { |
| 544 | id: elem_id, |
| 545 | ..Default::default() |
| 546 | }) { |
| 547 | accessibility_bounds.insert(elem_id, bounds); |
| 548 | } |
| 549 | } |
| 550 | accessibility_bounds |
| 551 | } |
| 552 | |
| 553 | /// Starts a new frame, returning a [`Ui`] handle for building the element tree. |
| 554 | pub fn begin( |