MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/Cauldron / GetFrontMostModalRootWindow

Function GetFrontMostModalRootWindow

libs/imgui/imgui.cpp:3783–3791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3781}
3782
3783static ImGuiWindow* GetFrontMostModalRootWindow()
3784{
3785 ImGuiContext& g = *GImGui;
3786 for (int n = g.OpenPopupStack.Size-1; n >= 0; n--)
3787 if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window)
3788 if (popup->Flags & ImGuiWindowFlags_Modal)
3789 return popup;
3790 return NULL;
3791}
3792
3793static void ClosePopupToLevel(int remaining)
3794{

Callers 3

NewFrameMethod · 0.85
EndFrameMethod · 0.85
BeginMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected