(area: Rect, height: u16)
| 45 | } |
| 46 | |
| 47 | pub fn header(area: Rect, height: u16) -> Rect { |
| 48 | let layout = Layout::default() |
| 49 | .direction(Direction::Vertical) |
| 50 | .constraints([Constraint::Length(height), Constraint::Min(0)]) |
| 51 | .split(area); |
| 52 | layout[0] |
| 53 | } |
| 54 | |
| 55 | pub fn sidebar_left(area: Rect, width: u16) -> (Rect, Rect) { |
| 56 | let layout = Layout::default() |
nothing calls this directly
no outgoing calls
no test coverage detected