MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / Initialize

Method Initialize

core/src/imgui/imgui.cpp:4126–4155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4124}
4125
4126void ImGui::Initialize(ImGuiContext* context)
4127{
4128 ImGuiContext& g = *context;
4129 IM_ASSERT(!g.Initialized && !g.SettingsLoaded);
4130
4131 // Add .ini handle for ImGuiWindow type
4132 {
4133 ImGuiSettingsHandler ini_handler;
4134 ini_handler.TypeName = "Window";
4135 ini_handler.TypeHash = ImHashStr("Window");
4136 ini_handler.ClearAllFn = WindowSettingsHandler_ClearAll;
4137 ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen;
4138 ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine;
4139 ini_handler.ApplyAllFn = WindowSettingsHandler_ApplyAll;
4140 ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll;
4141 g.SettingsHandlers.push_back(ini_handler);
4142 }
4143
4144 // Add .ini handle for ImGuiTable type
4145 TableSettingsInstallHandler(context);
4146
4147 // Create default viewport
4148 ImGuiViewportP* viewport = IM_NEW(ImGuiViewportP)();
4149 g.Viewports.push_back(viewport);
4150
4151#ifdef IMGUI_HAS_DOCK
4152#endif // #ifdef IMGUI_HAS_DOCK
4153
4154 g.Initialized = true;
4155}
4156
4157// This function is merely here to free heap allocations.
4158void ImGui::Shutdown(ImGuiContext* context)

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected