pub struct DockArea<'tree, Tab> { /* private fields */ }
Expand description
Displays a Tree
in egui
.
Implementations§
source§impl<'tree, Tab> DockArea<'tree, Tab>
impl<'tree, Tab> DockArea<'tree, Tab>
sourcepub fn show(self, ctx: &Context, tab_viewer: &mut impl TabViewer<Tab = Tab>)
pub fn show(self, ctx: &Context, tab_viewer: &mut impl TabViewer<Tab = Tab>)
Show the DockArea
at the top level.
This is the same as doing:
CentralPanel::default()
.frame(Frame::central_panel(&ctx.style()).inner_margin(0.))
.show(ctx, |ui| {
DockArea::new(&mut tree).show_inside(ui, &mut tab_viewer);
});
So you can’t use the CentralPanel::show
when using DockArea
’s one.
See also show_inside
.