Skip to main content

centered_rect

Function centered_rect 

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

Calculate a centered rectangle within an area