| 18808 | }; |
| 18809 | |
| 18810 | static void DockNodeFindInfo(ImGuiDockNode* node, ImGuiDockNodeTreeInfo* info) |
| 18811 | { |
| 18812 | if (node->Windows.Size > 0) |
| 18813 | { |
| 18814 | if (info->FirstNodeWithWindows == NULL) |
| 18815 | info->FirstNodeWithWindows = node; |
| 18816 | info->CountNodesWithWindows++; |
| 18817 | } |
| 18818 | if (node->IsCentralNode()) |
| 18819 | { |
| 18820 | IM_ASSERT(info->CentralNode == NULL); // Should be only one |
| 18821 | IM_ASSERT(node->IsLeafNode() && "If you get this assert: please submit .ini file + repro of actions leading to this."); |
| 18822 | info->CentralNode = node; |
| 18823 | } |
| 18824 | if (info->CountNodesWithWindows > 1 && info->CentralNode != NULL) |
| 18825 | return; |
| 18826 | if (node->ChildNodes[0]) |
| 18827 | DockNodeFindInfo(node->ChildNodes[0], info); |
| 18828 | if (node->ChildNodes[1]) |
| 18829 | DockNodeFindInfo(node->ChildNodes[1], info); |
| 18830 | } |
| 18831 | |
| 18832 | static ImGuiWindow* ImGui::DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id) |
| 18833 | { |
no outgoing calls
no test coverage detected