MCPcopy Create free account

hub / github.com/anhosh/egui_dock / functions

Functions366 in github.com/anhosh/egui_dock

↓ 2 callersFunctionmap_to_pixel_pos
(mut pos: Pos2, ppi: f32, map: fn(f32) -> f32)
src/utils.rs:16
↓ 2 callersMethodnode_address
(&self)
src/widgets/dock_area/drag_and_drop.rs:51
↓ 2 callersMethodnode_update_collapsed
Updates the collapsed state of the node and its parents.
src/dock_state/tree/mod.rs:890
↓ 2 callersMethodon_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 callersFunctionrect_stroke_box
Shrink a rectangle so that the stroke is fully contained inside the original rectangle.
src/utils.rs:36
↓ 2 callersMethodrender_nodes
( &mut self, ui: &mut Ui, tab_viewer: &mut impl TabViewer<Tab = Tab>, state: &
src/widgets/dock_area/show/mod.rs:262
↓ 2 callersMethodretain_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 callersMethodset_expanded_height
(&mut self, height: f32)
src/dock_state/window_state.rs:80
↓ 2 callersMethodset_new
(&mut self, new: bool)
src/dock_state/window_state.rs:86
↓ 2 callersMethodset_size
Set the size of this window in egui points.
src/dock_state/window_state.rs:59
↓ 2 callersMethodshow_tooltip_hints
(&mut self, surface_index: SurfaceIndex, response: Response)
src/widgets/dock_area/show/leaf.rs:786
↓ 2 callersMethodtab_title
( &mut self, ui: &mut Ui, tab_style: &TabStyle, id: Id, label: WidgetT
src/widgets/dock_area/show/leaf.rs:937
↓ 2 callersMethodvalid_surface_indices
(&self)
src/dock_state/mod.rs:202
↓ 2 callersMethodwindow_preview_rect
(&self, rect: Rect)
src/widgets/dock_area/drag_and_drop.rs:409
↓ 1 callersMethodactive_focused
(&mut self)
src/dock_state/tree/node/leaf.rs:143
↓ 1 callersMethodadd_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 callersMethodallocate_area_for_root_node
(&mut self, ui: &mut Ui, surface: SurfaceIndex)
src/widgets/dock_area/show/mod.rs:307
↓ 1 callersMethodallowed_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 callersMethodas_tab_destination
(&self)
src/widgets/dock_area/drag_and_drop.rs:41
↓ 1 callersMethodchildren_left
(self, level: usize)
src/dock_state/tree/node_index.rs:84
↓ 1 callersMethodchildren_right
(self, level: usize)
src/dock_state/tree/node_index.rs:92
↓ 1 callersMethodclear_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 callersMethodcompute_rect_sizes
(&mut self, ui: &Ui, path: NodePath, max_rect: Rect)
src/widgets/dock_area/show/mod.rs:334
↓ 1 callersMethodcontent
(&self)
examples/tab_add_popup.rs:48
↓ 1 callersMethodcreate_window
the 'static in this case means that the `open` field is always `None`
src/dock_state/window_state.rs:117
↓ 1 callersMethoddraggable_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 callersFunctionexpand_to_pixel
(mut rect: Rect, ppi: f32)
src/utils.rs:9
↓ 1 callersMethodexpanded_height
(&mut self)
src/dock_state/window_state.rs:102
↓ 1 callersFunctionfade_button_style
(style: &mut ButtonsStyle, factor: f32)
src/utils.rs:63
↓ 1 callersFunctionfade_dock_style
Fade a `egui_dock::Style` to a certain opacity
src/utils.rs:41
↓ 1 callersFunctionfade_seperator_style
(style: &mut SeparatorStyle, factor: f32)
src/utils.rs:57
↓ 1 callersFunctionfade_tab_bar_style
(style: &mut TabBarStyle, factor: f32)
src/utils.rs:52
↓ 1 callersFunctionfade_tab_body_style
(style: &mut TabBodyStyle, factor: f32)
src/utils.rs:87
↓ 1 callersFunctionfade_tab_style
(style: &mut TabStyle, factor: f32)
src/utils.rs:73
↓ 1 callersFunctionfade_widgets
(widgets: &mut Widgets, factor: f32)
src/utils.rs:108
↓ 1 callersMethodfind_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 callersMethodfind_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 callersMethodfind_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 callersMethodfirst_leaf
(&self, top: NodeIndex)
src/dock_state/tree/mod.rs:558
↓ 1 callersMethodforce_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 callersMethodhovered_window_surface
( &self, state: &mut State, hold_time: f32, ctx: &Context, )
src/widgets/dock_area/show/mod.rs:162
↓ 1 callersMethodinsert_tab
(&mut self, index: TabIndex, tab: Tab)
src/dock_state/tree/node/mod.rs:309
↓ 1 callersMethodis_drag_drop_locked
(&self, ctx: &Context, style: &Style)
src/widgets/dock_area/state.rs:54
↓ 1 callersMethodis_left_right
Returns whether the split is horizontal.
src/dock_state/tree/mod.rs:60
↓ 1 callersMethodis_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 callersMethodis_surface
(&self)
src/widgets/dock_area/drag_and_drop.rs:67
↓ 1 callersMethodis_surface_valid
(&self, surface_index: SurfaceIndex)
src/dock_state/mod.rs:194
↓ 1 callersMethoditer_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 callersMethoditer_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 callersMethoditer_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 callersMethoditer_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 callersMethoditer_tabs
(&self)
src/dock_state/tree/node/mod.rs:216
↓ 1 callersMethoditer_tabs_indexed
Returns an [`Iterator`] of tabs in this node with their corresponding [`TabIndex`].
src/dock_state/tree/node/mod.rs:224
↓ 1 callersMethoditer_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 callersMethodleaf
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 callersMethodleaf_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 callersMethodmain_surface
Get an immutable borrow to the tree at the main surface.
src/dock_state/mod.rs:129
↓ 1 callersMethodminimized_body
( &mut self, ui: &mut Ui, surface_index: SurfaceIndex, fade_style: Option<&Sty
src/widgets/dock_area/show/window_surface.rs:122
↓ 1 callersMethodmove_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 callersMethodnext_position
(&mut self)
src/dock_state/window_state.rs:92
↓ 1 callersMethodnext_size
(&mut self)
src/dock_state/window_state.rs:97
↓ 1 callersMethodnode
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 callersMethodnode_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 callersMethodnum_tabs
(&self)
src/dock_state/tree/mod.rs:253
↓ 1 callersMethodon_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 callersMethodon_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 callersMethodon_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 callersMethodremove_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 callersMethodremove_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 callersMethodreset_drag
(&mut self)
src/widgets/dock_area/state.rs:30
↓ 1 callersMethodresolve_icon_based
( &mut self, ui: &Ui, style: &Style, allowed_splits: AllowedSplits, wi
src/widgets/dock_area/drag_and_drop.rs:176
↓ 1 callersMethodresolve_traditional
( &mut self, ui: &Ui, style: &Style, allowed_splits: AllowedSplits, wi
src/widgets/dock_area/drag_and_drop.rs:255
↓ 1 callersMethodretain_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 callersMethodsave_json
(&self)
examples/save_load_dock_state.rs:44
↓ 1 callersMethodscroll_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 callersMethodsecondary_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 callersMethodsecondary_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 callersMethodset_active_tab
(&mut self, path: TabPath)
src/dock_state/mod.rs:237
↓ 1 callersMethodset_drag_and_drop
( &mut self, drag: DragData, drop: HoverData, ctx: &Context, style: &S
src/widgets/dock_area/state.rs:36
↓ 1 callersMethodset_focused_node
(&mut self, node_index: NodeIndex)
src/dock_state/tree/mod.rs:598
↓ 1 callersMethodset_position
Set the position for this window in screen coordinates.
src/dock_state/window_state.rs:53
↓ 1 callersMethodshow_add_popup
Shows or hides the add button popup. By default it's `false`.
src/widgets/dock_area/mod.rs:94
↓ 1 callersMethodshow_close_buttons
Shows or hides the tab close buttons. By default it's `true`.
src/widgets/dock_area/mod.rs:108
↓ 1 callersMethodshow_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 callersMethodshow_leaf
( &mut self, ui: &mut Ui, state: &mut State, path: NodePath, tab_viewe
src/widgets/dock_area/show/leaf.rs:28
↓ 1 callersMethodshow_leaf_close_all_buttons
(mut self, show_leaf_close_all_buttons: bool)
src/widgets/dock_area/mod.rs:198
↓ 1 callersMethodshow_leaf_collapse_buttons
(mut self, show_leaf_collapse_buttons: bool)
src/widgets/dock_area/mod.rs:206
↓ 1 callersMethodshow_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 callersMethodshow_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 callersMethodshow_separator
(&mut self, ui: &mut Ui, path: NodePath, fade_style: Option<&Style>)
src/widgets/dock_area/show/mod.rs:438
↓ 1 callersMethodshow_surface_inside
Show a single surface of a [`DockState`].
src/widgets/dock_area/show/mod.rs:247
↓ 1 callersMethodshow_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 callersMethodshow_window_surface
( &mut self, ui: &Ui, surf_index: SurfaceIndex, tab_viewer: &mut impl TabViewe
src/widgets/dock_area/show/window_surface.rs:13
↓ 1 callersMethodsimple_demo
(&mut self, ui: &mut Ui)
examples/hello.rs:135
↓ 1 callersMethodsimple_demo_menu
(&mut self, ui: &mut Ui)
examples/hello.rs:128
↓ 1 callersMethodsplit
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 callersMethodsplit_right
( &mut self, parent: NodeIndex, fraction: f32, tabs: Vec<Tab>, )
src/dock_state/tree/mod.rs:430
↓ 1 callersMethodstore
(self, ctx: &Context, id: Id)
src/widgets/dock_area/state.rs:26
↓ 1 callersMethodstyle_editor
(&mut self, ui: &mut Ui)
examples/hello.rs:149
↓ 1 callersMethodtab_bar
( &mut self, ui: &mut Ui, state: &mut State, path: NodePath, tab_viewe
src/widgets/dock_area/show/leaf.rs:92
← previousnext →101–200 of 366, ranked by callers