MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / accessibility_bounds

Method accessibility_bounds

src/lib.rs:540–551  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

538impl<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(

Callers 1

evalMethod · 0.80

Calls 1

get_element_dataMethod · 0.80

Tested by

no test coverage detected