Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anhosh/egui_dock
/ functions
Functions
366 in github.com/anhosh/egui_dock
⨍
Functions
366
◇
Types & classes
62
↓ 21 callers
Function
main
()
examples/hello.rs:52
↓ 20 callers
Method
right
(self)
src/dock_state/tree/node_index.rs:43
↓ 17 callers
Method
iter
(&self)
src/dock_state/tree/mod.rs:213
↓ 17 callers
Method
main_surface_mut
Get a mutable borrow to the tree at the main surface.
src/dock_state/mod.rs:134
↓ 17 callers
Method
style
(mut self, style: Style)
src/widgets/dock_area/mod.rs:87
↓ 16 callers
Method
left
(self)
src/dock_state/tree/node_index.rs:37
↓ 16 callers
Method
len
(&self)
src/dock_state/tree/mod.rs:199
↓ 15 callers
Method
node_path
Get the node path components.
src/dock_state/tree/tab_index.rs:34
↓ 13 callers
Method
is_collapsed
Returns whether the [`Tree`] is collapsed.
src/dock_state/tree/mod.rs:853
↓ 13 callers
Method
is_empty
Is this surface [`Empty`](Self::Empty) (in practice null)?
src/dock_state/surface.rs:44
↓ 13 callers
Method
iter_mut
(&mut self)
src/dock_state/tree/mod.rs:221
↓ 12 callers
Method
is_empty
(&self)
src/dock_state/tree/mod.rs:205
↓ 12 callers
Method
is_main
(self)
src/dock_state/surface_index.rs:22
↓ 12 callers
Method
split_below
( &mut self, parent: NodeIndex, fraction: f32, tabs: Vec<Tab>, )
src/dock_state/tree/mod.rs:380
↓ 9 callers
Method
collapsed_leaf_count
Returns the number of collapsed layers of leaf subnodes in the [`Tree`].
src/dock_state/tree/mod.rs:863
↓ 8 callers
Method
get_leaf_mut
Get mutable access to the leaf data of this node, if it contains any (i.e is a leaf)
src/dock_state/tree/node/mod.rs:43
↓ 8 callers
Method
parent
(self)
src/dock_state/tree/node_index.rs:49
↓ 8 callers
Method
rect
Get the [`Rect`] which this window occupies. If this window hasn't been shown before, this will be [`Rect::NOTHING`].
src/dock_state/window_state.rs:66
↓ 8 callers
Method
tabs_count
(&self)
src/dock_state/tree/node/mod.rs:332
↓ 7 callers
Method
get_window_state_mut
Get the [`WindowState`] which corresponds to a [`SurfaceIndex`]. Returns `None` if the surface is [`Empty`](Surface::Empty), [`Main`](Surface::Main),
src/dock_state/mod.rs:156
↓ 7 callers
Method
is_leaf
(&self)
src/dock_state/tree/node/mod.rs:88
↓ 7 callers
Method
remove_tab
Removes a tab at the specified `path`. This method will yield the removed tab, or `None` if it doesn't exist.
src/dock_state/mod.rs:380
↓ 7 callers
Method
show_inside
Shows the docking hierarchy inside a [`Ui`].
src/widgets/dock_area/show/mod.rs:23
↓ 6 callers
Method
is_closeable
Returns `true` if the user of your app should be able to close a given `_tab`. By default, `true` is always returned.
src/widgets/tab_viewer.rs:42
↓ 6 callers
Method
leaf_mut
Mutably borrows a leaf node at the given `path`. Returns `Err` if the `path` is invalid or the node at the `path` is not a leaf.
src/dock_state/mod.rs:281
↓ 6 callers
Function
map_to_pixel
(point: f32, ppi: f32, map: fn(f32) -> f32)
src/utils.rs:23
↓ 6 callers
Method
push_to_focused_leaf
Pushes `tab` to the currently focused leaf. If no leaf is focused it will be pushed to the first available leaf. If no leaf is available then a new
src/dock_state/mod.rs:468
↓ 6 callers
Method
set_collapsed_leaf_count
Sets the number of collapsed layers of leaf subnodes in the [`Tree`].
src/dock_state/tree/mod.rs:858
↓ 5 callers
Method
breadth_first_index_iter
(&self)
src/dock_state/tree/mod.rs:227
↓ 5 callers
Function
fade_widget_visuals
(visuals: &mut WidgetVisuals, factor: f32)
src/utils.rs:116
↓ 5 callers
Method
is_parent
(&self)
src/dock_state/tree/node/mod.rs:107
↓ 5 callers
Method
left_node
Returns the path to the node to the left of the current one.
src/dock_state/tree/node_index.rs:123
↓ 5 callers
Method
node_tree
Get access to the node tree of this surface.
src/dock_state/surface.rs:49
↓ 5 callers
Function
rect_set_size_centered
(rect: &mut Rect, size: Vec2)
src/utils.rs:27
↓ 5 callers
Method
remove_surface
Remove a surface based on its [`SurfaceIndex`] Returns the removed surface or `None` if it didn't exist. Panics if you try to remove the main surfac
src/dock_state/mod.rs:216
↓ 5 callers
Method
right_node
Returns the path to the node to the right of the current one.
src/dock_state/tree/node_index.rs:131
↓ 5 callers
Method
root_node
Acquire a immutable borrow to the [`Node`] at the root of the tree. Returns [`None`] if the tree is empty. # Examples ```rust # use egui_dock::DockS
src/dock_state/tree/mod.rs:275
↓ 5 callers
Method
set_collapsed
Sets the collapsing state of the [`Tree`].
src/dock_state/tree/mod.rs:848
↓ 5 callers
Method
set_rect
(&mut self, new_rect: Rect)
src/dock_state/tree/node/mod.rs:60
↓ 5 callers
Method
split
Creates two new nodes by splitting a given `parent` node and assigns them as its children. The first (old) node inherits content of the `parent` from
src/dock_state/tree/mod.rs:476
↓ 5 callers
Method
split_left
( &mut self, parent: NodeIndex, fraction: f32, tabs: Vec<Tab>, )
src/dock_state/tree/mod.rs:405
↓ 4 callers
Method
children_at
(self, level: usize)
src/dock_state/tree/node_index.rs:76
↓ 4 callers
Method
context_menu
Content inside the context menu shown when the tab is right-clicked. `_path` specifies which [`Surface`](crate::Surface) and [`Node`](crate::Node) th
src/widgets/tab_viewer.rs:20
↓ 4 callers
Function
fade_tab_interaction_style
(style: &mut TabInteractionStyle, factor: f32)
src/utils.rs:81
↓ 4 callers
Method
find_tab
Find the given tab. Returns in which node and where in that node the tab is. The returned [`NodeIndex`] will always point to a [`Node::Leaf`]. In c
src/dock_state/mod.rs:733
↓ 4 callers
Method
id
(mut self, id: Id)
src/widgets/dock_area/mod.rs:80
↓ 4 callers
Function
lerp_vec
(split: Split, alpha: f32)
src/widgets/dock_area/drag_and_drop.rs:419
↓ 4 callers
Function
make_overlay_painter
(ui: &Ui)
src/widgets/dock_area/drag_and_drop.rs:72
↓ 4 callers
Method
node_tree_mut
Get mutable access to the node tree of this surface.
src/dock_state/surface.rs:58
↓ 4 callers
Method
push_to_first_leaf
Pushes a tab to the first `Leaf` it finds or create a new leaf if an `Empty` node is encountered.
src/dock_state/tree/mod.rs:691
↓ 4 callers
Method
surface_address
(&self)
src/widgets/dock_area/drag_and_drop.rs:59
↓ 4 callers
Method
tabs
(&self)
src/dock_state/tree/mod.rs:233
↓ 4 callers
Method
title
(&mut self, tab: &mut Self::Tab)
examples/hello.rs:93
↓ 3 callers
Method
allowed_in_windows
Specifies a tab's ability to be shown in a window. Returns `false` if this tab should never be turned into a window.
src/widgets/tab_viewer.rs:93
↓ 3 callers
Function
corner_radius_ui
(ui: &mut Ui, corner_radius: &mut CornerRadius)
examples/hello.rs:623
↓ 3 callers
Method
get_leaf
Get immutable access to the leaf data of this node, if it contains any (i.e is a leaf)
src/dock_state/tree/node/mod.rs:35
↓ 3 callers
Method
is_horizontal
(&self)
src/dock_state/tree/node/mod.rs:94
↓ 3 callers
Method
is_locked
(&self, style: &Style, ctx: &Context)
src/widgets/dock_area/drag_and_drop.rs:398
↓ 3 callers
Method
iter_tabs_mut
(&mut self)
src/dock_state/tree/node/mod.rs:234
↓ 3 callers
Method
len
Get the length of tab list in this [`LeafNode`].
src/dock_state/tree/node/leaf.rs:64
↓ 3 callers
Method
level
(self)
src/dock_state/tree/node_index.rs:59
↓ 3 callers
Method
push_to_focused_leaf
Pushes `tab` to the currently focused leaf. If no leaf is focused it will be pushed to the first available leaf. If no leaf is available then a new
src/dock_state/tree/mod.rs:732
↓ 3 callers
Method
remove_leaf
Removes a leaf at the specified `path`.
src/dock_state/mod.rs:389
↓ 3 callers
Method
set_focused_node_and_surface
(&mut self, path: NodePath)
src/dock_state/mod.rs:289
↓ 3 callers
Method
show_add_buttons
Shows or hides the tab add buttons. By default it's `false`.
src/widgets/dock_area/mod.rs:101
↓ 3 callers
Method
tab_style_override
Sets custom style for given tab.
src/widgets/tab_viewer.rs:86
↓ 3 callers
Method
tabs_mut
(&mut self)
src/dock_state/tree/node/mod.rs:205
↓ 3 callers
Method
toggle_minimized
(&mut self)
src/dock_state/window_state.rs:107
↓ 3 callers
Method
update_lock
(&mut self, target_state: LockState, style: &Style, ctx: &Context)
src/widgets/dock_area/drag_and_drop.rs:374
↓ 3 callers
Method
window_toggle_minimized
(&mut self, surf_index: SurfaceIndex)
src/widgets/dock_area/show/window_surface.rs:255
↓ 2 callers
Method
add_window
Adds a window with its own list of tabs. Returns the [`SurfaceIndex`] of the new window, which will remain constant through the windows lifetime.
src/dock_state/mod.rs:420
↓ 2 callers
Method
append_tab
(&mut self, tab: Tab)
src/dock_state/tree/node/mod.rs:268
↓ 2 callers
Method
balance
(&mut self, emptied_nodes: HashSet<NodeIndex>)
src/dock_state/tree/mod.rs:867
↓ 2 callers
Function
button_ui
Draws one of the Tab drop destination icons inside `rect`, which one you get is specified by `is_top_bottom`.
src/widgets/dock_area/drag_and_drop.rs:90
↓ 2 callers
Method
collapsed_leaf_count
Returns the number of layers of collapsed leaf subnodes.
src/dock_state/tree/node/mod.rs:122
↓ 2 callers
Function
constrain_rect_to_area
An adapted version of the [`egui::Area`]s code for restricting an area rect to a bound.
src/widgets/dock_area/drag_and_drop.rs:450
↓ 2 callers
Method
detach_tab
Takes a tab out of its current surface and puts it in a new window. Returns the surface index of the new window.
src/dock_state/mod.rs:344
↓ 2 callers
Function
draw_drop_rect
(rect: Rect, ui: &Ui, style: &Style)
src/widgets/dock_area/drag_and_drop.rs:429
↓ 2 callers
Function
draw_highlight_rect
(rect: Rect, ui: &Ui, style: &Style)
src/widgets/dock_area/drag_and_drop.rs:78
↓ 2 callers
Function
draw_window_rect
(rect: Rect, ui: &Ui, style: &Style)
src/widgets/dock_area/drag_and_drop.rs:436
↓ 2 callers
Method
ensure_tree
Ensures that the surface at `index` contains a [`Tree`] If the surface is [`Empty`](Surface::Empty), builds a [`Surface::Main`] for the main surface
src/dock_state/mod.rs:453
↓ 2 callers
Function
fade_visuals
Fade a `egui::style::Visuals` to a certain opacity
src/utils.rs:93
↓ 2 callers
Method
filter_map_tabs
Returns a new [`DockState`] while mapping and filtering the tab type. Any remaining empty [`Node`]s and [`Surface`]s are removed. ``` # use egui_dock
src/dock_state/mod.rs:619
↓ 2 callers
Method
filter_map_tabs
Returns a new [`Surface`] while mapping and filtering the tab type. Any remaining empty [`Node`]s and are removed, and if this [`Surface`] remains emp
src/dock_state/surface.rs:124
↓ 2 callers
Method
filter_map_tabs
Returns a new [`Tree`] while mapping and filtering the tab type. Any remaining empty [`Node`]s are removed.
src/dock_state/tree/mod.rs:781
↓ 2 callers
Method
filter_map_tabs
Returns a new [`Node`] while mapping and filtering the tab type. If this [`Node`] remains empty, it will change to [`Node::Empty`].
src/dock_state/tree/node/mod.rs:341
↓ 2 callers
Method
find_tab
Find the given tab. Returns in which node and where in that node the tab is. The returned [`NodeIndex`] will always point to a [`Node::Leaf`]. In c
src/dock_state/tree/mod.rs:974
↓ 2 callers
Method
focused_leaf
(&self)
src/dock_state/mod.rs:370
↓ 2 callers
Method
get_window_state
Get the [`WindowState`] which corresponds to a [`SurfaceIndex`]. Returns `None` if the surface is an [`Empty`](Surface::Empty), [`Main`](Surface::Mai
src/dock_state/mod.rs:166
↓ 2 callers
Method
is_collapsed
(&self)
src/dock_state/tree/node/mod.rs:113
↓ 2 callers
Method
is_empty
(&self)
src/dock_state/tree/node/mod.rs:82
↓ 2 callers
Method
is_left
(self)
src/dock_state/tree/node_index.rs:65
↓ 2 callers
Method
is_minimized
(&self)
src/dock_state/window_state.rs:112
↓ 2 callers
Method
is_on_secondary_button
( &self, surface_index: SurfaceIndex, ui: &mut Ui, response: &Response, )
src/widgets/dock_area/show/leaf.rs:811
↓ 2 callers
Method
is_top_bottom
Returns whether the split is vertical.
src/dock_state/tree/mod.rs:55
↓ 2 callers
Method
is_vertical
(&self)
src/dock_state/tree/node/mod.rs:100
↓ 2 callers
Method
iter_nodes_indexed
Returns an [`Iterator`] of nodes in this surface's tree with their corresponding [`NodeIndex`].
src/dock_state/surface.rs:78
↓ 2 callers
Method
iter_nodes_mut_indexed
Returns a mutable [`Iterator`] of nodes in this surface's tree with their corresponding [`NodeIndex`].
src/dock_state/surface.rs:96
↓ 2 callers
Method
iter_surfaces_indexed
Returns an [`Iterator`] over all surfaces with their corresponding [`SurfaceIndex`].
src/dock_state/mod.rs:491
↓ 2 callers
Method
iter_surfaces_mut_indexed
Returns a mutable [`Iterator`] over all surfaces with their corresponding [`SurfaceIndex`].
src/dock_state/mod.rs:504
next →
1–100 of 366, ranked by callers