Splitter
Creates resizable panes with pointer and keyboard-operated handles.
Loading interactive demo…
let splitter = Splitter::new("workspace", &state);
splitter.root().flex_row()#Import
Import Splitter from quickgui.
use quickgui::*;#Usage
let splitter = Splitter::new("workspace", &state);
splitter.root().flex_row()#Anatomy
Splitter::rootSplitter::paneSplitter::handle
#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
Splitter
View sourcepub fn new(root_id: impl Into<ElementId>, state: &SplitterState) -> Selfroot_idpub const fn root_id(self) -> ElementId—
statepub const fn state(self) -> SplitterState—
pane_idpub fn pane_id(self, index: usize) -> ElementId—
handle_idpub fn handle_id(self, index: usize) -> ElementId—
panepub fn pane(self, index: usize) -> Option<SplitterPane>—
handlepub fn handle(self, index: usize) -> Option<SplitterHandle>—
Describe the handle that sits after pane `index`.
pub fn handle(self, index: usize) -> Option<SplitterHandle>View sourceSplitter::root_with
View sourcepub fn root_with(self, root: Element) -> ElementDecorate an application-owned root without adding appearance. The root becomes a flex container on the split axis because pane order along that axis is the behavior itself. Colors, gaps, borders, and padding stay caller-owned.
Splitter::root
View sourcepub fn root(self) -> ElementCreate the unstyled root part. Use [`Self::root_with`] to supply an existing element.
