MCPcopy Create free account

hub / github.com/anhosh/egui_dock / functions

Functions366 in github.com/anhosh/egui_dock

Methodmap_tabs
Returns a new [`Surface`] while mapping the tab type.
src/dock_state/surface.rs:143
Methodmap_tabs
Returns a new [`Tree`] while mapping the tab type.
src/dock_state/tree/mod.rs:814
Methodmap_tabs
Returns a new [`Node`] while mapping the tab type.
src/dock_state/tree/node/mod.rs:376
Methodnew
(tree: &'tree mut DockState<Tab>)
src/widgets/dock_area/mod.rs:50
Methodnew
Create a new tree with given tabs at the main surface's root node.
src/dock_state/mod.rs:114
Methodnew
Create a default window state.
src/dock_state/window_state.rs:48
Methodnew
(tabs: Vec<Tab>)
src/dock_state/tree/mod.rs:172
Methodnew
Creates a new fully qualified path to a tab.
src/dock_state/tree/tab_index.rs:29
Methodnew
Creates a fully qualified new path to a node.
src/dock_state/tree/node_index.rs:118
Methodnew
(tree: &'a Tree<Tab>)
src/dock_state/tree/tab_iter.rs:11
Methodnew
Create a new ``SplitNode``
src/dock_state/tree/node/split.rs:22
Methodnew
Create New LeafNode with specified ``tabs``, all other internal values will be filled by "nothing" defaults.
src/dock_state/tree/node/leaf.rs:32
Methodnext
(&mut self)
src/dock_state/tree/tab_iter.rs:23
Methodon_add
(&mut self, path: NodePath)
examples/tab_add.rs:30
Methodon_close
(&mut self, _tab: &mut Self::Tab)
examples/simple.rs:29
Methodon_close
(&mut self, tab: &mut Self::Tab)
examples/hello.rs:121
Methodon_rect_changed
(&mut self, _tab: &mut Self::Tab)
examples/save_load_dock_state.rs:34
Methodpush_to_first_leaf
Push a tab to the first available `Leaf` or create a new leaf if an `Empty` node is encountered.
src/dock_state/mod.rs:475
Methodrect
Get the Area which this ``SplitNode`` occupies.
src/dock_state/tree/node/split.rs:42
Methodrect
(&self)
src/dock_state/tree/node/mod.rs:72
Methodrect
Get a [`Rect`] representing the area this [`LeafNode`] occupies on screen.
src/dock_state/tree/node/leaf.rs:74
Methodregular
(node: NodePath)
examples/tab_add_popup.rs:27
Functionremove_and_retain
()
src/dock_state/tree/mod.rs:988
Methodremove_tab
(&mut self, tab_index: TabIndex)
src/dock_state/tree/node/mod.rs:323
Methodremove_tab
(&mut self, tab_index: impl Into<TabIndex>)
src/dock_state/tree/node/leaf.rs:123
Functionretain_none_then_push
()
src/dock_state/mod.rs:754
Methodretain_tabs
Removes all tabs for which `predicate` returns `false`. Any remaining empty [`Node`]s and are also removed, and if this [`Surface`] remains empty, it'
src/dock_state/surface.rs:164
Methodretain_tabs
Removes all tabs for which `predicate` returns `false`. If this [`Node`] remains empty, it will change to [`Node::Empty`].
src/dock_state/tree/node/mod.rs:395
Methodretain_tabs
Removes all tabs for which `predicate` returns `false`.
src/dock_state/tree/node/leaf.rs:132
Functionretain_trailing_empty
()
src/dock_state/tree/mod.rs:1004
Methodroot
()
src/dock_state/tree/node_index.rs:31
Methodroot_node_mut
Acquire a mutable borrow to the [`Node`] at the root of the tree. Returns [`None`] if the tree is empty. # Examples ```rust # use egui_dock::{DockSt
src/dock_state/tree/mod.rs:293
Methodsecondary_button_modifiers
The key combination used to activate secondary buttons on tab bars. By default it's [`Modifiers::SHIFT`].
src/widgets/dock_area/mod.rs:150
Methodset_active_tab
( &mut self, node_index: impl Into<NodeIndex>, tab_index: impl Into<TabIndex>, )
src/dock_state/tree/mod.rs:718
Methodset_active_tab
(&mut self, active_tab: impl Into<TabIndex>)
src/dock_state/tree/node/leaf.rs:47
Methodset_collapsed
(&mut self, collapsed: bool)
src/dock_state/tree/node/mod.rs:281
Methodset_collapsed_leaf_count
(&mut self, count: i32)
src/dock_state/tree/node/mod.rs:295
Methodset_rect
(&mut self, new_rect: Rect)
src/dock_state/tree/node/split.rs:37
Methodset_rect
(&mut self, new_rect: Rect)
src/dock_state/tree/node/leaf.rs:59
Methodshow_window_close_buttons
(mut self, show_window_close_buttons: bool)
src/widgets/dock_area/mod.rs:181
Methodshow_window_collapse_buttons
(mut self, show_window_collapse_buttons: bool)
src/widgets/dock_area/mod.rs:190
Methodsplit
(&mut self, split: Split, fraction: f32)
src/dock_state/tree/node/mod.rs:143
Methodsplit_above
( &mut self, parent: NodeIndex, fraction: f32, tabs: Vec<Tab>, )
src/dock_state/tree/mod.rs:355
Methodsplit_tabs
( &mut self, parent: NodeIndex, split: Split, fraction: f32, tabs: Vec
src/dock_state/tree/mod.rs:329
Methodsurfaces_count
Returns the current number of surfaces.
src/dock_state/mod.rs:481
Functiontab_body_ids_differ_between_surfaces
()
src/widgets/dock_area/show/leaf.rs:1322
Methodtab_context_menus
Whether tabs show a context menu when right-clicked. By default it's `true`.
src/widgets/dock_area/mod.rs:115
Methodtab_style_editor_ui
(ui: &mut Ui, tab_style: &mut TabInteractionStyle)
examples/hello.rs:282
Functiontabs
(tree: &Tree<i32>)
src/dock_state/tree/tab_iter.rs:53
Methodtabs
(&self)
src/dock_state/tree/node/leaf.rs:80
Methodtabs_mut
(&mut self)
src/dock_state/tree/node/leaf.rs:86
Functiontest_tabs_iter
()
src/dock_state/tree/tab_iter.rs:52
Methodtitle
(&mut self, tab: &mut Self::Tab)
examples/reject_windows.rs:26
Methodtitle
(&mut self, tab: &mut Self::Tab)
examples/tab_add.rs:22
Methodtitle
(&self)
examples/tab_add_popup.rs:41
Methodtitle
(&mut self, title: &mut Title)
examples/text_editor.rs:27
Methodtitle
(&mut self, tab: &mut Self::Tab)
examples/simple.rs:21
Methodtitle
(&mut self, tab: &mut Self::Tab)
examples/save_load_dock_state.rs:26
Methodui
(&mut self, ui: &mut egui::Ui, tab: &mut Self::Tab)
examples/reject_windows.rs:30
Methodui
(&mut self, ui: &mut egui::Ui, tab: &mut Self::Tab)
examples/tab_add.rs:26
Methodui
(&mut self, ui: &mut egui::Ui, tab: &mut Self::Tab)
examples/tab_add_popup.rs:75
Methodui
(&mut self, ui: &mut egui::Ui, title: &mut Title)
examples/text_editor.rs:31
Methodui
(&mut self, ui: &mut egui::Ui, tab: &mut Self::Tab)
examples/simple.rs:25
Methodui
(&mut self, ui: &mut egui::Ui, tab: &mut Self::Tab)
examples/save_load_dock_state.rs:30
Methodwindow_bounds
(mut self, bounds: Rect)
src/widgets/dock_area/mod.rs:172
Methodwith_translations
Sets translations of text later displayed in [`DockArea`](crate::DockArea).
src/dock_state/mod.rs:123
← previous301–366 of 366, ranked by callers