We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names. This is called once per window .ini entry + once per newly instantiated window.
| 15704 | // We don't provide a FindWindowSettingsByName() because Docking system doesn't always hold on names. |
| 15705 | // This is called once per window .ini entry + once per newly instantiated window. |
| 15706 | ImGuiWindowSettings* ImGui::FindWindowSettingsByID(ImGuiID id) |
| 15707 | { |
| 15708 | ImGuiContext& g = *GImGui; |
| 15709 | for (ImGuiWindowSettings* settings = g.SettingsWindows.begin(); settings != NULL; settings = g.SettingsWindows.next_chunk(settings)) |
| 15710 | if (settings->ID == id && !settings->WantDelete) |
| 15711 | return settings; |
| 15712 | return NULL; |
| 15713 | } |
| 15714 | |
| 15715 | // This is faster if you are holding on a Window already as we don't need to perform a search. |
| 15716 | ImGuiWindowSettings* ImGui::FindWindowSettingsByWindow(ImGuiWindow* window) |
nothing calls this directly
no test coverage detected