node_launchpad::components::utils

Function centered_rect

source
pub fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect
Expand description

helper function to create a centered rect using up certain percentage of the available rect r