MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ClearWindowSettings

Method ClearWindowSettings

include/imgui/imgui.cpp:15725–15736  ·  view source on GitHub ↗

This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.

Source from the content-addressed store, hash-verified

15723
15724// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
15725void ImGui::ClearWindowSettings(const char* name)
15726{
15727 //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name);
15728 ImGuiWindow* window = FindWindowByName(name);
15729 if (window != NULL)
15730 {
15731 window->Flags |= ImGuiWindowFlags_NoSavedSettings;
15732 InitOrLoadWindowSettings(window, NULL);
15733 }
15734 if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name)))
15735 settings->WantDelete = true;
15736}
15737
15738static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*)
15739{

Callers

nothing calls this directly

Calls 2

InitOrLoadWindowSettingsFunction · 0.85
ImHashStrFunction · 0.85

Tested by

no test coverage detected