MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / ImGui_ImplWin32_GetBackendData

Function ImGui_ImplWin32_GetBackendData

KBotExt/imgui/imgui_impl_win32.cpp:113–116  ·  view source on GitHub ↗

Backend data stored in io.BackendPlatformUserData to allow support for multiple Dear ImGui contexts It is STRONGLY preferred that you use docking branch with multi-viewports (== single Dear ImGui context + multiple windows) instead of multiple Dear ImGui contexts. FIXME: multi-context support is not well tested and probably dysfunctional in this backend. FIXME: some shared resources (mouse cursor

Source from the content-addressed store, hash-verified

111// FIXME: multi-context support is not well tested and probably dysfunctional in this backend.
112// FIXME: some shared resources (mouse cursor shape, gamepad) are mishandled when using multi-context.
113static ImGui_ImplWin32_Data* ImGui_ImplWin32_GetBackendData()
114{
115 return ImGui::GetCurrentContext() ? (ImGui_ImplWin32_Data*)ImGui::GetIO().BackendPlatformUserData : nullptr;
116}
117
118// Functions
119static bool ImGui_ImplWin32_InitEx(void* hwnd, bool platform_has_own_dc)

Calls

no outgoing calls

Tested by

no test coverage detected