| 14733 | } |
| 14734 | |
| 14735 | static 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 | |
| 14751 | static void ImGui::DockContextRemoveNode(ImGuiContext* ctx, ImGuiDockNode* node, bool merge_sibling_into_parent_node) |
| 14752 | { |
nothing calls this directly
no test coverage detected