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

Method DockSettingsRemoveNodeReferences

imgui_tiny_app/imgui/imgui.cpp:21430–21445  ·  view source on GitHub ↗

Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings

Source from the content-addressed store, hash-verified

21428
21429// Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings
21430static void ImGui::DockSettingsRemoveNodeReferences(ImGuiID* node_ids, int node_ids_count)
21431{
21432 ImGuiContext& g = *GImGui;
21433 int found = 0;
21434 //// FIXME-OPT: We could remove this loop by storing the index in the map
21435 for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings))
21436 for (int node_n = 0; node_n < node_ids_count; node_n++)
21437 if (settings->DockId == node_ids[node_n])
21438 {
21439 settings->DockId = 0;
21440 settings->DockOrder = -1;
21441 if (++found < node_ids_count)
21442 break;
21443 return;
21444 }
21445}
21446
21447static ImGuiDockNodeSettings* ImGui::DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID id)
21448{

Callers

nothing calls this directly

Calls 2

next_chunkMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected