Struct egui_dock::DockArea

source ·
pub struct DockArea<'tree, Tab> { /* private fields */ }
Expand description

Stores the layout and position of all its tabs

Keeps track of the currently focused leaf and currently active tabs

Implementations§

Sets the DockArea id. Useful if you have more than one DockArea.

Sets the dock area style.

Shows the docking area.

Shows the docking hierarchy inside a Ui.

Examples found in repository?
src/lib.rs (line 252)
246
247
248
249
250
251
252
253
    pub fn show(self, ctx: &Context, tab_viewer: &mut impl TabViewer<Tab = Tab>) {
        let layer_id = LayerId::background();
        let max_rect = ctx.available_rect();
        let clip_rect = ctx.available_rect();

        let mut ui = Ui::new(ctx.clone(), layer_id, self.id, max_rect, clip_rect);
        self.show_inside(&mut ui, tab_viewer);
    }

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.