pub fn parent_scroll_clip_rects(
main: &mut World,
parents: &HashMap<Entity, Entity>,
) -> HashMap<Entity, (Vec2, Vec2)>Expand description
Returns the nearest clipping-ancestor rect (origin and size in window coordinates) for every entity.
- A clipping ancestor is one carrying a
crate::input::Scrollcomponent or acrate::components::Stylewithoverflow_xoroverflow_yset tocrate::components::Overflow::Hidden. - Entities without a clipping ancestor are absent from the returned map.