MCPcopy Create free account
hub / github.com/Joe1sn/S-inject / WindowSettingsHandler_ReadLine

Function WindowSettingsHandler_ReadLine

extern/ImGui/imgui.cpp:15360–15369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15358}
15359
15360static void WindowSettingsHandler_ReadLine(ImGuiContext*, ImGuiSettingsHandler*, void* entry, const char* line)
15361{
15362 ImGuiWindowSettings* settings = (ImGuiWindowSettings*)entry;
15363 int x, y;
15364 int i;
15365 if (sscanf(line, "Pos=%i,%i", &x, &y) == 2) { settings->Pos = ImVec2ih((short)x, (short)y); }
15366 else if (sscanf(line, "Size=%i,%i", &x, &y) == 2) { settings->Size = ImVec2ih((short)x, (short)y); }
15367 else if (sscanf(line, "Collapsed=%d", &i) == 1) { settings->Collapsed = (i != 0); }
15368 else if (sscanf(line, "IsChild=%d", &i) == 1) { settings->IsChild = (i != 0); }
15369}
15370
15371// Apply to existing windows (if any)
15372static void WindowSettingsHandler_ApplyAll(ImGuiContext* ctx, ImGuiSettingsHandler*)

Callers

nothing calls this directly

Calls 1

ImVec2ihClass · 0.85

Tested by

no test coverage detected