Skip to main content

shape_bounds_at

Function shape_bounds_at 

Source
pub fn shape_bounds_at(shape: &ShapeRef<'_>, rect: Rect) -> Rect
Expand description

Bounded::bounds for a shape sitting at a hypothetical rect — where a drag or resize is previewing it — so a previewed footprint is measured by the same rule as a settled one.