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

Method SaveIniSettingsToMemory

include/imgui/imgui.cpp:15672–15683  ·  view source on GitHub ↗

Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer

Source from the content-addressed store, hash-verified

15670
15671// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
15672const char* ImGui::SaveIniSettingsToMemory(size_t* out_size)
15673{
15674 ImGuiContext& g = *GImGui;
15675 g.SettingsDirtyTimer = 0.0f;
15676 g.SettingsIniData.Buf.resize(0);
15677 g.SettingsIniData.Buf.push_back(0);
15678 for (ImGuiSettingsHandler& handler : g.SettingsHandlers)
15679 handler.WriteAllFn(&g, &handler, &g.SettingsIniData);
15680 if (out_size)
15681 *out_size = (size_t)g.SettingsIniData.size();
15682 return g.SettingsIniData.c_str();
15683}
15684
15685ImGuiWindowSettings* ImGui::CreateNewWindowSettings(const char* name)
15686{

Callers

nothing calls this directly

Calls 4

c_strMethod · 0.80
resizeMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected