MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / DockContextAddNode

Method DockContextAddNode

extern/imgui/imgui.cpp:14735–14749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14733}
14734
14735static ImGuiDockNode* ImGui::DockContextAddNode(ImGuiContext* ctx, ImGuiID id)
14736{
14737 // Generate an ID for the new node (the exact ID value doesn't matter as long as it is not already used) and add the first window.
14738 ImGuiContext& g = *ctx;
14739 if (id == 0)
14740 id = DockContextGenNodeID(ctx);
14741 else
14742 IM_ASSERT(DockContextFindNodeByID(ctx, id) == NULL);
14743
14744 // We don't set node->LastFrameAlive on construction. Nodes are always created at all time to reflect .ini settings!
14745 IMGUI_DEBUG_LOG_DOCKING("[docking] DockContextAddNode 0x%08X\n", id);
14746 ImGuiDockNode* node = IM_NEW(ImGuiDockNode)(id);
14747 ctx->DockContext.Nodes.SetVoidPtr(node->ID, node);
14748 return node;
14749}
14750
14751static void ImGui::DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node)
14752{

Callers

nothing calls this directly

Calls 1

SetVoidPtrMethod · 0.80

Tested by

no test coverage detected