node_launchpad::components::utils

Function centered_rect_fixed

source
pub fn centered_rect_fixed(x: u16, y: u16, r: Rect) -> Rect
Expand description

Helper function to create a centered rect using a fixed x,y constraint.