MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / BeginPopup

Method BeginPopup

extern/imgui/imgui.cpp:10738–10749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10736}
10737
10738bool 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.

Callers

nothing calls this directly

Calls 2

GetIDMethod · 0.80
ClearFlagsMethod · 0.45

Tested by

no test coverage detected