pub fn layout(n: usize, rect: Rect, gap: f32) -> Vec<Rect>Expand description
The panes’ places for n panes in rect, gap apart, row by row:
one fills it, two and three side by side, four in a square, more in
the grid that shows a 3:2 image the largest.