Skip to main content

centered

Function centered 

Source
pub fn centered(viewport: Rect, w: f64, h: f64) -> Rect
Expand description

A w × h box centred in viewport (where a dialog goes).