Module egui_dock::dock_state::tree

source ·
Expand description

Binary tree representing the relationships between Nodes.

Implementation details

The binary tree is stored in a Vec indexed by NodeIndex. The root is always at index 0. For a given node n:

  • left child of n will be at index n * 2 + 1.
  • right child of n will be at index n * 2 + 2.

Re-exports

Modules

Structs

  • Binary tree representing the relationships between Nodes.

Enums

  • Direction in which a new node is created relatively to the parent node at which the split occurs.
  • The destination for a tab which is being moved.
  • Specify how a tab should be added to a Node.