MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / DockNodeSetupHostWindow

Function DockNodeSetupHostWindow

engine/3rdparty/imgui/imgui.cpp:14654–14666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14652}
14653
14654static void DockNodeSetupHostWindow(ImGuiDockNode* node, ImGuiWindow* host_window)
14655{
14656 // Remove ourselves from any previous different host window
14657 // This can happen if a user mistakenly does (see #4295 for details):
14658 // - N+0: DockBuilderAddNode(id, 0) // missing ImGuiDockNodeFlags_DockSpace
14659 // - N+1: NewFrame() // will create floating host window for that node
14660 // - N+1: DockSpace(id) // requalify node as dockspace, moving host window
14661 if (node->HostWindow && node->HostWindow != host_window && node->HostWindow->DockNodeAsHost == node)
14662 node->HostWindow->DockNodeAsHost = NULL;
14663
14664 host_window->DockNodeAsHost = node;
14665 node->HostWindow = host_window;
14666}
14667
14668static void ImGui::DockNodeUpdate(ImGuiDockNode* node)
14669{

Callers 2

DockNodeUpdateMethod · 0.85
DockSpaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected