Dock
Tabbed panels to drag between, split and float, as in an IDE, from the fastframe-ui-dock crate.
Panels
area(ui, 300.0, |ui| {
Dock::new(&mut state.panels)
.id_salt("panels")
.show(ui, &mut Panes);
});
Pill style
area(ui, 200.0, |ui| {
Dock::new(&mut state.pill)
.id_salt("pill")
.style(&dock_styles::Pill)
.show(ui, &mut Panes);
});
Small tab bars, from the environment
area(ui, 200.0, |ui| {
ui.control_size(Size::Small, |ui| {
ui.dock_style(dock_styles::Pill, |ui| {
Dock::new(&mut state.small)
.id_salt("small")
.show(ui, &mut Panes);
});
});
});
Your own style
area(ui, 200.0, |ui| {
Dock::new(&mut state.own)
.id_salt("own")
.style(&Wired)
.show(ui, &mut Panes);
});
The story above is gallery/src/stories/dock.rs, running in your browser. Every snippet on this page is cut from it.