(area: Rect, constraints: Vec<Constraint>)
| 9 | } |
| 10 | |
| 11 | pub fn vertical_split(area: Rect, constraints: Vec<Constraint>) -> Vec<Rect> { |
| 12 | Layout::default() |
| 13 | .direction(Direction::Vertical) |
| 14 | .constraints(constraints) |
| 15 | .split(area) |
| 16 | .to_vec() |
| 17 | } |
| 18 | |
| 19 | pub fn centered(area: Rect, width: u16, height: u16) -> Rect { |
| 20 | let popup_layout = Layout::default() |
nothing calls this directly
no outgoing calls
no test coverage detected