This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
| 16385 | |
| 16386 | // This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more. |
| 16387 | void ImGui::ClearWindowSettings(const char* name) |
| 16388 | { |
| 16389 | //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name); |
| 16390 | ImGuiContext& g = *GImGui; |
| 16391 | ImGuiWindow* window = FindWindowByName(name); |
| 16392 | if (window != NULL) |
| 16393 | { |
| 16394 | window->Flags |= ImGuiWindowFlags_NoSavedSettings; |
| 16395 | InitOrLoadWindowSettings(window, NULL); |
| 16396 | if (window->DockId != 0) |
| 16397 | DockContextProcessUndockWindow(&g, window, true); |
| 16398 | } |
| 16399 | if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name))) |
| 16400 | settings->WantDelete = true; |
| 16401 | } |
| 16402 | |
| 16403 | static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*) |
| 16404 | { |
nothing calls this directly
no test coverage detected