pub fn split_v(area: Rect, constraints: &[Constraint]) -> Vec<Rect> ⓘExpand description
Split area into stacked rows top-to-bottom.
Returns one Rect per constraint; empty panes (zero height) are still
returned so indices line up with constraints.
§Examples
use retroglyph_core::Rect;
use retroglyph_widgets::{Constraint, split_v};
let area = Rect::new(0, 0, 20, 10);
let panes = split_v(area, &[Constraint::Fixed(1), Constraint::Fill(1), Constraint::Fixed(1)]);
assert_eq!(panes.iter().map(Rect::height).collect::<Vec<_>>(), vec![1, 8, 1]);