Popup System
Popups block normal mouse hovering detection behind them. If not modal, they can be closed by clicking anywhere outside them, or by pressing ESCAPE. Their visibility state is held internally instead of being held by the programmer.Opening Popups
OpenPopup
const char*
Popup identifier string
ImGuiID
Popup identifier ID
ImGuiPopupFlags
default:"0"
Popup flags (see ImGuiPopupFlags_)
OpenPopupOnItemClick
ImGuiPopupFlags_MouseButtonRight.
const char*
default:"NULL"
Popup identifier (NULL = use last item’s ID)
ImGuiPopupFlags
default:"0"
Popup flags
CloseCurrentPopup
Regular Popups
BeginPopup
const char*
Popup identifier
ImGuiWindowFlags
default:"0"
Window flags
bool
True if popup is open
EndPopup
EndPopup() if BeginPopupXXX() returns true.
Modal Popups
BeginPopupModal
const char*
Modal window name/title
bool*
default:"NULL"
Optional pointer to bool to show close button
ImGuiWindowFlags
default:"0"
Window flags
bool
True if modal is open
Context Menu Popups
BeginPopupContextItem
str_id==NULL to associate the popup to previous item.
const char*
default:"NULL"
Popup identifier (NULL = use last item’s ID)
ImGuiPopupFlags
default:"0"
Popup flags (default is right mouse button)
bool
True if popup is open
BeginPopupContextWindow
const char*
default:"NULL"
Popup identifier
ImGuiPopupFlags
default:"0"
Popup flags
bool
True if popup is open
BeginPopupContextVoid
const char*
default:"NULL"
Popup identifier
ImGuiPopupFlags
default:"0"
Popup flags
bool
True if popup is open
Popup Queries
IsPopupOpen
const char*
Popup identifier
ImGuiPopupFlags
default:"0"
Query flags
bool
True if popup is open
Popup Flags
ImGuiPopupFlags_
Flags forOpenPopup*(), BeginPopupContext*(), IsPopupOpen() functions.