MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / Initialize

Method Initialize

lib/imgui/imgui.cpp:3830–3863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3828}
3829
3830void ImGui::Initialize(ImGuiContext* context)
3831{
3832 ImGuiContext& g = *context;
3833 IM_ASSERT(!g.Initialized && !g.SettingsLoaded);
3834
3835 // Add .ini handle for ImGuiWindow type
3836 {
3837 ImGuiSettingsHandler ini_handler;
3838 ini_handler.TypeName = "Window";
3839 ini_handler.TypeHash = ImHashStr("Window");
3840 ini_handler.ReadOpenFn = WindowSettingsHandler_ReadOpen;
3841 ini_handler.ReadLineFn = WindowSettingsHandler_ReadLine;
3842 ini_handler.WriteAllFn = WindowSettingsHandler_WriteAll;
3843 g.SettingsHandlers.push_back(ini_handler);
3844 }
3845
3846#ifdef IMGUI_HAS_TABLE
3847 // Add .ini handle for ImGuiTable type
3848 {
3849 ImGuiSettingsHandler ini_handler;
3850 ini_handler.TypeName = "Table";
3851 ini_handler.TypeHash = ImHashStr("Table");
3852 ini_handler.ReadOpenFn = TableSettingsHandler_ReadOpen;
3853 ini_handler.ReadLineFn = TableSettingsHandler_ReadLine;
3854 ini_handler.WriteAllFn = TableSettingsHandler_WriteAll;
3855 g.SettingsHandlers.push_back(ini_handler);
3856 }
3857#endif // #ifdef IMGUI_HAS_TABLE
3858
3859#ifdef IMGUI_HAS_DOCK
3860#endif // #ifdef IMGUI_HAS_DOCK
3861
3862 g.Initialized = true;
3863}
3864
3865// This function is merely here to free heap allocations.
3866void ImGui::Shutdown(ImGuiContext* context)

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected