| 9804 | } |
| 9805 | |
| 9806 | ImGuiWindow* 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 | |
| 9816 | void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) |
| 9817 | { |
nothing calls this directly
no test coverage detected