OpenPopup

Popups: open/close functions OpenPopup(): set popup state to open (unless one of the specified ImGuiPopupFlags prevent opening). OpenPopupXXX() functions return true when the popup is toggled open, which allows you to capture local state if needed. You may also call IsWindowAppearing() inside the later BeginPopup() scope if you need to prepare/compute data for the popup. If not modal: they can be closed by clicking anywhere outside them, or by pressing ESCAPE. CloseCurrentPopup(): use inside the BeginPopup()/EndPopup() scope to close manually. CloseCurrentPopup() is called by default by Selectable()/MenuItem() when activated (FIXME: need some options). Use ImGuiPopupFlags_NoOpenOverExistingPopup to avoid opening a popup if there's already one at the same level. This is equivalent to e.g. testing for !IsAnyPopupOpen() prior to OpenPopup(). Use IsWindowAppearing() after BeginPopup() to tell if a window just opened.

pure @nogc nothrow @trusted
bool
OpenPopup
(
const(char)* str_id
,
ImGuiPopupFlags popup_flags
)

Meta