MCPcopy Create free account
hub / github.com/RenderKit/embree / GetCurrentWindowRead

Function GetCurrentWindowRead

tutorials/common/imgui/imgui_internal.h:2700–2700  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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);

Callers 15

GetColumnIndexMethod · 0.85
GetColumnsCountMethod · 0.85
GetColumnOffsetMethod · 0.85
SetColumnWidthMethod · 0.85
PushColumnClipRectMethod · 0.85
PushColumnsBackgroundMethod · 0.85
PopColumnsBackgroundMethod · 0.85
SetWindowPosMethod · 0.85
GetWindowSizeMethod · 0.85
IsWindowCollapsedMethod · 0.85
IsWindowAppearingMethod · 0.85
GetCursorScreenPosMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected