pub fn centred_rect(outer: Rect, width: u16, height: u16) -> RectExpand description
Centre a width x height rectangle inside outer, clipping if
the outer is smaller than the requested size.
Shared helper used by Dialog::preferred_size default impl and
by individual dialog implementations that override it.