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

Method GetTopMostAndVisiblePopupModal

tutorials/common/imgui/imgui.cpp:9806–9814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9804}
9805
9806ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal()
9807{
9808 ImGuiContext& g = *GImGui;
9809 for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--)
9810 if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window)
9811 if ((popup->Flags & ImGuiWindowFlags_Modal) && IsWindowActiveAndVisible(popup))
9812 return popup;
9813 return NULL;
9814}
9815
9816void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags)
9817{

Callers

nothing calls this directly

Calls 1

IsWindowActiveAndVisibleFunction · 0.85

Tested by

no test coverage detected