Skip to main content

centered_rect

Function centered_rect 

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

Returns a centered Rect with the given percentage width and fixed height.