MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / vertical_split

Function vertical_split

crates/opencode-tui/src/ui/layout.rs:11–17  ·  view source on GitHub ↗
(area: Rect, constraints: Vec<Constraint>)

Source from the content-addressed store, hash-verified

9}
10
11pub 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
19pub fn centered(area: Rect, width: u16, height: u16) -> Rect {
20 let popup_layout = Layout::default()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected