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

Method DockBuilderCopyNode

imgui_tiny_app/imgui/imgui.cpp:20946–20962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20944}
20945
20946void ImGui::DockBuilderCopyNode(ImGuiID src_node_id, ImGuiID dst_node_id, ImVector<ImGuiID>* out_node_remap_pairs)
20947{
20948 ImGuiContext& g = *GImGui;
20949 IM_ASSERT(src_node_id != 0);
20950 IM_ASSERT(dst_node_id != 0);
20951 IM_ASSERT(out_node_remap_pairs != NULL);
20952
20953 DockBuilderRemoveNode(dst_node_id);
20954
20955 ImGuiDockNode* src_node = DockContextFindNodeByID(&g, src_node_id);
20956 IM_ASSERT(src_node != NULL);
20957
20958 out_node_remap_pairs->clear();
20959 DockBuilderCopyNodeRec(src_node, dst_node_id, out_node_remap_pairs);
20960
20961 IM_ASSERT((out_node_remap_pairs->Size % 2) == 0);
20962}
20963
20964void ImGui::DockBuilderCopyWindowSettings(const char* src_name, const char* dst_name)
20965{

Callers

nothing calls this directly

Calls 2

DockBuilderCopyNodeRecFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected