Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings
| 21428 | |
| 21429 | // Remove references stored in ImGuiWindowSettings to the given ImGuiDockNodeSettings |
| 21430 | static 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 | |
| 21447 | static ImGuiDockNodeSettings* ImGui::DockSettingsFindNodeSettings(ImGuiContext* ctx, ImGuiID id) |
| 21448 | { |
nothing calls this directly
no test coverage detected