Skip to main content

snap_to_edges

Function snap_to_edges 

pub fn snap_to_edges(rect: Rect, bounds: Rect, gap: f64) -> Rect
Expand description

rect moved onto an edge of bounds it stands within 32 px of, gap in from it: the settle every floating thing uses, cards and windows alike.