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
↓ 2 callers
Function
map_to_pixel_pos
(mut pos: Pos2, ppi: f32, map: fn(f32) -> f32)
src/utils.rs:16
↓ 2 callers
Method
node_address
(&self)
src/widgets/dock_area/drag_and_drop.rs:51
↓ 2 callers
Method
node_update_collapsed
Updates the collapsed state of the node and its parents.
src/dock_state/tree/mod.rs:890
↓ 2 callers
Method
on_close
This is called when the `_tab` gets closed by the user. Returns an `OnCloseResponse` which determines what happens to the tab after this function get
src/widgets/tab_viewer.rs:35
↓ 2 callers
Function
rect_stroke_box
Shrink a rectangle so that the stroke is fully contained inside the original rectangle.
src/utils.rs:36
↓ 2 callers
Method
render_nodes
( &mut self, ui: &mut Ui, tab_viewer: &mut impl TabViewer<Tab = Tab>, state: &
src/widgets/dock_area/show/mod.rs:262
↓ 2 callers
Method
retain_tabs
Removes all tabs for which `predicate` returns `false`. Any remaining empty [`Node`]s are also removed.
src/dock_state/tree/mod.rs:833
↓ 2 callers
Method
set_expanded_height
(&mut self, height: f32)
src/dock_state/window_state.rs:80
↓ 2 callers
Method
set_new
(&mut self, new: bool)
src/dock_state/window_state.rs:86
↓ 2 callers
Method
set_size
Set the size of this window in egui points.
src/dock_state/window_state.rs:59
↓ 2 callers
Method
show_tooltip_hints
(&mut self, surface_index: SurfaceIndex, response: Response)
src/widgets/dock_area/show/leaf.rs:786
↓ 2 callers
Method
tab_title
( &mut self, ui: &mut Ui, tab_style: &TabStyle, id: Id, label: WidgetT
src/widgets/dock_area/show/leaf.rs:937
↓ 2 callers
Method
valid_surface_indices
(&self)
src/dock_state/mod.rs:202
↓ 2 callers
Method
window_preview_rect
(&self, rect: Rect)
src/widgets/dock_area/drag_and_drop.rs:409
↓ 1 callers
Method
active_focused
(&mut self)
src/dock_state/tree/node/leaf.rs:143
↓ 1 callers
Method
add_popup
Content of the popup under the add button. Useful for selecting what type of tab to add. This requires that [`DockArea::show_add_buttons`](crate::Doc
src/widgets/tab_viewer.rs:83
↓ 1 callers
Method
allocate_area_for_root_node
(&mut self, ui: &mut Ui, surface: SurfaceIndex)
src/widgets/dock_area/show/mod.rs:307
↓ 1 callers
Method
allowed_splits
What directions can a node be split in: left-right, top-bottom, all, or none. By default it's all.
src/widgets/dock_area/mod.rs:136
↓ 1 callers
Method
as_tab_destination
(&self)
src/widgets/dock_area/drag_and_drop.rs:41
↓ 1 callers
Method
children_left
(self, level: usize)
src/dock_state/tree/node_index.rs:84
↓ 1 callers
Method
children_right
(self, level: usize)
src/dock_state/tree/node_index.rs:92
↓ 1 callers
Method
clear_background
Whether the tab body will be cleared with the color specified in [`TabBarStyle::bg_fill`](crate::TabBarStyle::bg_fill).
src/widgets/tab_viewer.rs:99
↓ 1 callers
Method
compute_rect_sizes
(&mut self, ui: &Ui, path: NodePath, max_rect: Rect)
src/widgets/dock_area/show/mod.rs:334
↓ 1 callers
Method
content
(&self)
examples/tab_add_popup.rs:48
↓ 1 callers
Method
create_window
the 'static in this case means that the `open` field is always `None`
src/dock_state/window_state.rs:117
↓ 1 callers
Method
draggable_tabs
Whether tabs can be dragged between nodes and reordered on the tab bar. By default it's `true`.
src/widgets/dock_area/mod.rs:122
↓ 1 callers
Function
expand_to_pixel
(mut rect: Rect, ppi: f32)
src/utils.rs:9
↓ 1 callers
Method
expanded_height
(&mut self)
src/dock_state/window_state.rs:102
↓ 1 callers
Function
fade_button_style
(style: &mut ButtonsStyle, factor: f32)
src/utils.rs:63
↓ 1 callers
Function
fade_dock_style
Fade a `egui_dock::Style` to a certain opacity
src/utils.rs:41
↓ 1 callers
Function
fade_seperator_style
(style: &mut SeparatorStyle, factor: f32)
src/utils.rs:57
↓ 1 callers
Function
fade_tab_bar_style
(style: &mut TabBarStyle, factor: f32)
src/utils.rs:52
↓ 1 callers
Function
fade_tab_body_style
(style: &mut TabBodyStyle, factor: f32)
src/utils.rs:87
↓ 1 callers
Function
fade_tab_style
(style: &mut TabStyle, factor: f32)
src/utils.rs:73
↓ 1 callers
Function
fade_widgets
(widgets: &mut Widgets, factor: f32)
src/utils.rs:108
↓ 1 callers
Method
find_empty_surface_index
Finds the first empty surface index which may be used. WARNING**: in cases where one isn't found, `SurfaceIndex(self.surfaces.len())` is used. theref
src/dock_state/mod.rs:435
↓ 1 callers
Method
find_tab_from
Find a tab based on the conditions of a function. Returns the full path to that tab if it was found. The returned [`NodeIndex`] will always point to
src/dock_state/mod.rs:707
↓ 1 callers
Method
find_tab_from
Find a given tab based on ``predicate``. Returns the indices in where that node and tab is in this surface. The returned [`NodeIndex`] will always p
src/dock_state/tree/mod.rs:949
↓ 1 callers
Method
first_leaf
(&self, top: NodeIndex)
src/dock_state/tree/mod.rs:558
↓ 1 callers
Method
force_close
This is called every frame after [`ui`](Self::ui) is called, if the `_tab` is active. Returns `true` if the tab should be forced to close, `false` ot
src/widgets/tab_viewer.rs:59
↓ 1 callers
Method
hovered_window_surface
( &self, state: &mut State, hold_time: f32, ctx: &Context, )
src/widgets/dock_area/show/mod.rs:162
↓ 1 callers
Method
insert_tab
(&mut self, index: TabIndex, tab: Tab)
src/dock_state/tree/node/mod.rs:309
↓ 1 callers
Method
is_drag_drop_locked
(&self, ctx: &Context, style: &Style)
src/widgets/dock_area/state.rs:54
↓ 1 callers
Method
is_left_right
Returns whether the split is horizontal.
src/dock_state/tree/mod.rs:60
↓ 1 callers
Method
is_on_title_bar
Determines if the hover data implies we're hovering over a tab or the tab title bar.
src/widgets/dock_area/drag_and_drop.rs:172
↓ 1 callers
Method
is_surface
(&self)
src/widgets/dock_area/drag_and_drop.rs:67
↓ 1 callers
Method
is_surface_valid
(&self, surface_index: SurfaceIndex)
src/dock_state/mod.rs:194
↓ 1 callers
Method
iter_all_nodes
Returns an [`Iterator`] of **all** underlying nodes in the dock state, and the indices of containing surfaces.
src/dock_state/mod.rs:515
↓ 1 callers
Method
iter_all_nodes_mut
Returns a mutable [`Iterator`] of **all** underlying nodes in the dock state, and the indices of containing surfaces.
src/dock_state/mod.rs:532
↓ 1 callers
Method
iter_nodes
Returns an [`Iterator`] of nodes in this surface's tree. If the surface is [`Empty`](Self::Empty), then the returned [`Iterator`] will be empty.
src/dock_state/surface.rs:69
↓ 1 callers
Method
iter_nodes_mut
Returns a mutable [`Iterator`] of nodes in this surface's tree. If the surface is [`Empty`](Self::Empty), then the returned [`Iterator`] will be empt
src/dock_state/surface.rs:87
↓ 1 callers
Method
iter_tabs
(&self)
src/dock_state/tree/node/mod.rs:216
↓ 1 callers
Method
iter_tabs_indexed
Returns an [`Iterator`] of tabs in this node with their corresponding [`TabIndex`].
src/dock_state/tree/node/mod.rs:224
↓ 1 callers
Method
iter_tabs_mut_indexed
Returns a mutable [`Iterator`] of tabs in this node with their corresponding [`TabIndex`].
src/dock_state/tree/node/mod.rs:242
↓ 1 callers
Method
leaf
Immutably 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:274
↓ 1 callers
Method
leaf_mut
Mutably borrows a leaf node at the given index. Returns `Err` if the index is invalid or if the node is not a leaf.
src/dock_state/tree/mod.rs:550
↓ 1 callers
Method
main_surface
Get an immutable borrow to the tree at the main surface.
src/dock_state/mod.rs:129
↓ 1 callers
Method
minimized_body
( &mut self, ui: &mut Ui, surface_index: SurfaceIndex, fade_style: Option<&Sty
src/widgets/dock_area/show/window_surface.rs:122
↓ 1 callers
Method
move_tab
Moves a tab from a node to another node. You need to specify with [`TabDestination`] how the tab should be moved.
src/dock_state/mod.rs:300
↓ 1 callers
Method
next_position
(&mut self)
src/dock_state/window_state.rs:92
↓ 1 callers
Method
next_size
(&mut self)
src/dock_state/window_state.rs:97
↓ 1 callers
Method
node
Immutably borrows a node at the given `path`. This is the same as `&self[path]` but returns an error instead of panicking.
src/dock_state/mod.rs:246
↓ 1 callers
Method
node_mut
Mutably borrows a node at the given `path`. This is the same as `&mut self[path]` but returns an error instead of panicking.
src/dock_state/mod.rs:260
↓ 1 callers
Method
num_tabs
(&self)
src/dock_state/tree/mod.rs:253
↓ 1 callers
Method
on_add
This is called when the add button is pressed. `_path` specifies which [`Surface`](crate::Surface) and on which [`Node`](crate::Node) this particular
src/widgets/tab_viewer.rs:67
↓ 1 callers
Method
on_rect_changed
Called when the rectangle of the tab content changes. This can happen when the window is resized, panels are docked or undocked, or when the layout o
src/widgets/tab_viewer.rs:77
↓ 1 callers
Method
on_tab_button
Called after each tab button is shown, so you can add a tooltip, check for clicks, etc.
src/widgets/tab_viewer.rs:30
↓ 1 callers
Method
remove_leaf
Removes the given node from the [`Tree`]. # Panics - If the tree is empty. - If the node at index `node` is not a [`Leaf`](Node::Leaf).
src/dock_state/tree/mod.rs:612
↓ 1 callers
Method
remove_tab
Removes the tab at the given ([`NodeIndex`], [`TabIndex`]) pair. If the node is emptied after the tab is removed, the node will also be removed. Ret
src/dock_state/tree/mod.rs:770
↓ 1 callers
Method
reset_drag
(&mut self)
src/widgets/dock_area/state.rs:30
↓ 1 callers
Method
resolve_icon_based
( &mut self, ui: &Ui, style: &Style, allowed_splits: AllowedSplits, wi
src/widgets/dock_area/drag_and_drop.rs:176
↓ 1 callers
Method
resolve_traditional
( &mut self, ui: &Ui, style: &Style, allowed_splits: AllowedSplits, wi
src/widgets/dock_area/drag_and_drop.rs:255
↓ 1 callers
Method
retain_tabs
Removes all tabs for which `predicate` returns `false`. Any remaining empty [`Node`]s and [`Surface`]s are also removed. ``` # use egui_dock::{DockSt
src/dock_state/mod.rs:689
↓ 1 callers
Method
save_json
(&self)
examples/save_load_dock_state.rs:44
↓ 1 callers
Method
scroll_bars
Returns `true` if the horizontal and vertical scroll bars will be shown for `tab`. By default, both scroll bars are shown.
src/widgets/tab_viewer.rs:106
↓ 1 callers
Method
secondary_button_context_menu
Whether the secondary buttons on tab bars are activated from a context value by right-clicking primary buttons. By default it's `true`.
src/widgets/dock_area/mod.rs:164
↓ 1 callers
Method
secondary_button_on_modifier
Whether the secondary buttons on tab bars are activated by the modifier key. By default it's `true`.
src/widgets/dock_area/mod.rs:157
↓ 1 callers
Method
set_active_tab
(&mut self, path: TabPath)
src/dock_state/mod.rs:237
↓ 1 callers
Method
set_drag_and_drop
( &mut self, drag: DragData, drop: HoverData, ctx: &Context, style: &S
src/widgets/dock_area/state.rs:36
↓ 1 callers
Method
set_focused_node
(&mut self, node_index: NodeIndex)
src/dock_state/tree/mod.rs:598
↓ 1 callers
Method
set_position
Set the position for this window in screen coordinates.
src/dock_state/window_state.rs:53
↓ 1 callers
Method
show_add_popup
Shows or hides the add button popup. By default it's `false`.
src/widgets/dock_area/mod.rs:94
↓ 1 callers
Method
show_close_buttons
Shows or hides the tab close buttons. By default it's `true`.
src/widgets/dock_area/mod.rs:108
↓ 1 callers
Method
show_drag_drop_overlay
Resolve where a dragged tab would land given it's dropped this frame, returns `None` when the resulting drop is an invalid move.
src/widgets/dock_area/show/mod.rs:182
↓ 1 callers
Method
show_leaf
( &mut self, ui: &mut Ui, state: &mut State, path: NodePath, tab_viewe
src/widgets/dock_area/show/leaf.rs:28
↓ 1 callers
Method
show_leaf_close_all_buttons
(mut self, show_leaf_close_all_buttons: bool)
src/widgets/dock_area/mod.rs:198
↓ 1 callers
Method
show_leaf_collapse_buttons
(mut self, show_leaf_collapse_buttons: bool)
src/widgets/dock_area/mod.rs:206
↓ 1 callers
Method
show_root_surface_inside
( &mut self, ui: &mut Ui, tab_viewer: &mut impl TabViewer<Tab = Tab>, state: &
src/widgets/dock_area/show/main_surface.rs:12
↓ 1 callers
Method
show_secondary_button_hint
Whether tooltip hints are shown for secondary buttons on tab bars. By default it's `true`.
src/widgets/dock_area/mod.rs:143
↓ 1 callers
Method
show_separator
(&mut self, ui: &mut Ui, path: NodePath, fade_style: Option<&Style>)
src/widgets/dock_area/show/mod.rs:438
↓ 1 callers
Method
show_surface_inside
Show a single surface of a [`DockState`].
src/widgets/dock_area/show/mod.rs:247
↓ 1 callers
Method
show_tab_name_on_hover
Whether tabs show their name when hovered over them. By default it's `false`.
src/widgets/dock_area/mod.rs:129
↓ 1 callers
Method
show_window_surface
( &mut self, ui: &Ui, surf_index: SurfaceIndex, tab_viewer: &mut impl TabViewe
src/widgets/dock_area/show/window_surface.rs:13
↓ 1 callers
Method
simple_demo
(&mut self, ui: &mut Ui)
examples/hello.rs:135
↓ 1 callers
Method
simple_demo_menu
(&mut self, ui: &mut Ui)
examples/hello.rs:128
↓ 1 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/mod.rs:405
↓ 1 callers
Method
split_right
( &mut self, parent: NodeIndex, fraction: f32, tabs: Vec<Tab>, )
src/dock_state/tree/mod.rs:430
↓ 1 callers
Method
store
(self, ctx: &Context, id: Id)
src/widgets/dock_area/state.rs:26
↓ 1 callers
Method
style_editor
(&mut self, ui: &mut Ui)
examples/hello.rs:149
↓ 1 callers
Method
tab_bar
( &mut self, ui: &mut Ui, state: &mut State, path: NodePath, tab_viewe
src/widgets/dock_area/show/leaf.rs:92
← previous
next →
101–200 of 366, ranked by callers