MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ClearWindowSettings

Method ClearWindowSettings

KBotExt/imgui/imgui.cpp:13115–13126  ·  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

13113
13114// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
13115void ImGui::ClearWindowSettings(const char* name)
13116{
13117 //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name);
13118 ImGuiWindow* window = FindWindowByName(name);
13119 if (window != NULL)
13120 {
13121 window->Flags |= ImGuiWindowFlags_NoSavedSettings;
13122 InitOrLoadWindowSettings(window, NULL);
13123 }
13124 if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name)))
13125 settings->WantDelete = true;
13126}
13127
13128static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*)
13129{

Callers

nothing calls this directly

Calls 2

InitOrLoadWindowSettingsFunction · 0.85
ImHashStrFunction · 0.85

Tested by

no test coverage detected