See Demo->Stacked Modal to confirm what this is for.
| 10272 | |
| 10273 | // See Demo->Stacked Modal to confirm what this is for. |
| 10274 | ImGuiWindow* 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 | |
| 10284 | void ImGui::OpenPopup(const char* str_id, ImGuiPopupFlags popup_flags) |
| 10285 | { |
nothing calls this directly
no test coverage detected