Skip to main content

use_rect_refresh

Function use_rect_refresh 

Source
pub fn use_rect_refresh() -> RectRefresh
Expand description

The provider tree’s RectRefresh channel: ping refresh_all() after you move layout under a live drag (scrolling a custom container, collapsing a panel) so hit-testing and data-over track the new geometry. crate::autoscroll::AutoScroll pings it for you.

§Panics

Panics if no ancestor provided a drag context.