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

Method GetTopMostAndVisiblePopupModal

KBotExt/imgui/imgui.cpp:10274–10282  ·  view source on GitHub ↗

See Demo->Stacked Modal to confirm what this is for.

Source from the content-addressed store, hash-verified

10272
10273// See Demo->Stacked Modal to confirm what this is for.
10274ImGuiWindow* ImGui::GetTopMostAndVisiblePopupModal()
10275{
10276 ImGuiContext& g = *GImGui;
10277 for (int n = g.OpenPopupStack.Size - 1; n >= 0; n--)
10278 if (ImGuiWindow* popup = g.OpenPopupStack.Data[n].Window)
10279 if ((popup->Flags & ImGuiWindowFlags_Modal) && IsWindowActiveAndVisible(popup))
10280 return popup;
10281 return NULL;
10282}
10283
10284void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags)
10285{

Callers

nothing calls this directly

Calls 1

IsWindowActiveAndVisibleFunction · 0.85

Tested by

no test coverage detected