Windows We should always have a CurrentWindow in the stack (there is an implicit "Debug" window) If this ever crash because g.CurrentWindow is NULL it means that either - ImGui::NewFrame() has never been called, which is illegal. - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal.
| 2698 | // - ImGui::NewFrame() has never been called, which is illegal. |
| 2699 | // - You are calling ImGui functions after ImGui::EndFrame()/ImGui::Render() and before the next ImGui::NewFrame(), which is also illegal. |
| 2700 | inline ImGuiWindow* GetCurrentWindowRead() { ImGuiContext& g = *GImGui; return g.CurrentWindow; } |
| 2701 | inline ImGuiWindow* GetCurrentWindow() { ImGuiContext& g = *GImGui; g.CurrentWindow->WriteAccessed = true; return g.CurrentWindow; } |
| 2702 | IMGUI_API ImGuiWindow* FindWindowByID(ImGuiID id); |
| 2703 | IMGUI_API ImGuiWindow* FindWindowByName(const char* name); |
no outgoing calls
no test coverage detected