| 10736 | } |
| 10737 | |
| 10738 | bool ImGui::BeginPopup(const char* str_id, ImGuiWindowFlags flags) |
| 10739 | { |
| 10740 | ImGuiContext& g = *GImGui; |
| 10741 | if (g.OpenPopupStack.Size <= g.BeginPopupStack.Size) // Early out for performance |
| 10742 | { |
| 10743 | g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values |
| 10744 | return false; |
| 10745 | } |
| 10746 | flags |= ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoSavedSettings; |
| 10747 | ImGuiID id = g.CurrentWindow->GetID(str_id); |
| 10748 | return BeginPopupEx(id, flags); |
| 10749 | } |
| 10750 | |
| 10751 | // If 'p_open' is specified for a modal popup window, the popup will have a regular close button which will close the popup. |
| 10752 | // Note that popup visibility status is owned by Dear ImGui (and manipulated with e.g. OpenPopup) so the actual value of *p_open is meaningless here. |
nothing calls this directly
no test coverage detected