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_add_popup(self, show_add_popup: bool) -> Self
pub fn show_add_popup(self, show_add_popup: bool) -> Self
Shows or hides the add button popup. By default it’s false.
Shows or hides the tab add buttons. By default it’s false.
Shows or hides the tab close buttons. By default it’s true.
Whether tabs show a context menu. By default it’s true.
sourcepub fn draggable_tabs(self, draggable_tabs: bool) -> Self
pub fn draggable_tabs(self, draggable_tabs: bool) -> Self
Whether tabs can be dragged between nodes and reordered on the tab bar. By default it’s true.
sourcepub fn show_tab_name_on_hover(self, show_tab_name_on_hover: bool) -> Self
pub fn show_tab_name_on_hover(self, show_tab_name_on_hover: bool) -> Self
Whether tabs show their name when hovered over them. By default it’s false.
sourcepub fn scroll_area_in_tabs(self, scroll_area_in_tabs: bool) -> Self
pub fn scroll_area_in_tabs(self, scroll_area_in_tabs: bool) -> Self
Whether tabs have a ScrollArea
out of the box.
By default it’s true.
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
.
Trait Implementations§
Auto Trait Implementations§
impl<'tree, Tab> RefUnwindSafe for DockArea<'tree, Tab>where Tab: RefUnwindSafe,
impl<'tree, Tab> Send for DockArea<'tree, Tab>where Tab: Send,
impl<'tree, Tab> Sync for DockArea<'tree, Tab>where Tab: Sync,
impl<'tree, Tab> Unpin for DockArea<'tree, Tab>
impl<'tree, Tab> !UnwindSafe for DockArea<'tree, Tab>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more