MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / DockNodeFindInfo

Function DockNodeFindInfo

imgui_tiny_app/imgui/imgui.cpp:18810–18830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18808};
18809
18810static 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
18832static ImGuiWindow* ImGui::DockNodeFindWindowByID(ImGuiDockNode* node, ImGuiID id)
18833{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected