Skip to main content

clear_of

Function clear_of 

Source
pub fn clear_of(viewport: Rect, bands: &[Rect]) -> Rect
Expand description

The part of viewport the chrome leaves clear: each band taken off the edge it hugs, at the shallowest inset that clears it. A band that touches no edge — glass floating over the middle of the diagram — takes nothing off: a framing may pass under it, since glass is not a wall.