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.
- Rects are on-screen: a clipper nested inside a scrolled container is shifted by that container’s
crate::input::ScrollOffset, the same shift every leaf under it gets (seeparent_scroll_offsets). Its own offset is not applied - a scroll box moves its content, not its own frame.