SplitPane builder
Two panes separated by a divider.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::layout::SplitPane;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
axis(axis: SplitAxis) -> Self
horizontal() -> Self
vertical() -> Self
ratio(ratio: f32) -> Self
min_sizes(start: f32, end: f32) -> Self
step(step: f32) -> Self
collapsible(collapsible: bool) -> Self
handle_label(label: impl Into<SharedString>) -> Self
start(pane: impl IntoElement) -> Self
end(pane: impl IntoElement) -> Self
on_resize(handler: impl Fn(f32, &mut Window, &mut App) + 'static) -> Self
on_collapse(handler: impl Fn(SplitSide, &mut Window, &mut App) + 'static) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.