Skip to main content

fitted_rect

Function fitted_rect 

pub fn fitted_rect(picture: &WindowPicture, into: Rect) -> Rect
Expand description

Where picture goes fitted inside into: as large as fits, keeping its shape, centred.