1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Remove NodeState

This commit is contained in:
Emil Ernerfeldt
2023-04-25 12:42:29 +02:00
parent a4dc86d77e
commit 4be5f43a3a
2 changed files with 74 additions and 88 deletions

View File

@@ -176,18 +176,18 @@ fn tree_ui(
.id_source((node_id, "tree"))
.default_open(true)
.show(ui, |ui| match node {
dock::NodeLayout::Leaf(_) => {}
dock::NodeLayout::Tabs(tabs) => {
dock::Node::Leaf(_) => {}
dock::Node::Tabs(tabs) => {
for &child in &tabs.children {
tree_ui(ui, behavior, nodes, child);
}
}
dock::NodeLayout::Horizontal(layout) => {
dock::Node::Horizontal(layout) => {
for &child in &layout.children {
tree_ui(ui, behavior, nodes, child);
}
}
dock::NodeLayout::Vertical(layout) => {
dock::Node::Vertical(layout) => {
for &child in &layout.children {
tree_ui(ui, behavior, nodes, child);
}