MCPcopy Create free account
hub / github.com/cinder/Cinder / ClearWindowSettings

Method ClearWindowSettings

src/imgui/imgui.cpp:15329–15340  ·  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

15327
15328// This will revert window to its initial state, including enabling the ImGuiCond_FirstUseEver/ImGuiCond_Once conditions once more.
15329void ImGui::ClearWindowSettings(const char* name)
15330{
15331 //IMGUI_DEBUG_LOG("ClearWindowSettings('%s')\n", name);
15332 ImGuiWindow* window = FindWindowByName(name);
15333 if (window != NULL)
15334 {
15335 window->Flags |= ImGuiWindowFlags_NoSavedSettings;
15336 InitOrLoadWindowSettings(window, NULL);
15337 }
15338 if (ImGuiWindowSettings* settings = window ? FindWindowSettingsByWindow(window) : FindWindowSettingsByID(ImHashStr(name)))
15339 settings->WantDelete = true;
15340}
15341
15342static void WindowSettingsHandler_ClearAll(ImGuiContext* ctx, ImGuiSettingsHandler*)
15343{

Callers

nothing calls this directly

Calls 2

InitOrLoadWindowSettingsFunction · 0.85
ImHashStrFunction · 0.85

Tested by

no test coverage detected