Lines Matching defs:settings

146  - This codebase is also optimized to yield decent performances with typical "Debug" builds settings.
914 this is also useful to set yourself in the context of another window (to get/set other settings)
3001 // If the user has inconsistent compilation settings, imgui configuration #define, packing pragma, etc. you may see different structures from what imgui.cpp sees which is highly problematic.
3387 // Load settings on first frame (if not explicitly loaded manually before)
3396 // Save settings (with a delay after the last modification, so we don't spam disk too much)
3576 // Save settings (unless we haven't attempted to load them: CreateContext/DestroyContext without a call to NewFrame shouldn't save an empty file)
4490 // User can disable loading and saving of settings. Tooltip and child windows also don't store settings.
4492 if (ImGuiWindowSettings* settings = ImGui::FindWindowSettings(window->ID))
4494 // Retrieve settings from .ini file
4495 window->SettingsIdx = g.SettingsWindows.index_from_ptr(settings);
4497 window->Pos = ImFloor(settings->Pos);
4498 window->Collapsed = settings->Collapsed;
4499 if (ImLengthSqr(settings->Size) > 0.00001f)
4500 size = ImFloor(settings->Size);
8963 ImGuiWindowSettings* settings = &g.SettingsWindows.back();
8964 settings->Name = ImStrdup(name);
8965 settings->ID = ImHashStr(name, 0);
8966 return settings;
8980 if (ImGuiWindowSettings* settings = FindWindowSettings(ImHashStr(name, 0)))
8981 return settings;
9102 ImGuiWindowSettings* settings = ImGui::FindWindowSettings(ImHashStr(name, 0));
9103 if (!settings)
9104 settings = ImGui::CreateNewWindowSettings(name);
9105 return (void*)settings;
9110 ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry;
9113 if (sscanf(line, "Pos=%f,%f", &x, &y) == 2) settings->Pos = ImVec2(x, y);
9114 else if (sscanf(line, "Size=%f,%f", &x, &y) == 2) settings->Size = ImMax(ImVec2(x, y), GImGui->Style.WindowMinSize);
9115 else if (sscanf(line, "Collapsed=%d", &i) == 1) settings->Collapsed = (i != 0);
9121 // (if a window wasn't opened in this session we preserve its settings)
9129 ImGuiWindowSettings* settings = (window->SettingsIdx != -1) ? &g.SettingsWindows[window->SettingsIdx] : ImGui::FindWindowSettings(window->ID);
9130 if (!settings)
9132 settings = ImGui::CreateNewWindowSettings(window->Name);
9133 window->SettingsIdx = g.SettingsWindows.index_from_ptr(settings);
9135 IM_ASSERT(settings->ID == window->ID);
9136 settings->Pos = window->Pos;
9137 settings->Size = window->SizeFull;
9138 settings->Collapsed = window->Collapsed;
9145 const ImGuiWindowSettings* settings = &g.SettingsWindows[i];
9146 if (settings->Pos.x == FLT_MAX)
9148 const char* name = settings->Name;
9152 buf->appendf("Pos=%d,%d\n", (int)settings->Pos.x, (int)settings->Pos.y);
9153 buf->appendf("Size=%d,%d\n", (int)settings->Size.x, (int)settings->Size.y);
9154 buf->appendf("Collapsed=%d\n", settings->Collapsed);