Skip to main content

centered_rect

Function centered_rect 

Source
fn centered_rect(width: u16, height: u16, area: Rect) -> Rect
Expand description

Compute a centered rectangle within the given area.