mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-08 04:40:09 +00:00
Popups: Internals: Added IsAnyPopupOpen().
This commit is contained in:
parent
d31fe97f74
commit
37eb89371b
4 changed files with 24 additions and 8 deletions
|
|
@ -2813,7 +2813,7 @@ static void ShowDemoWindowPopups()
|
|||
if (ImGui::TreeNode("Context menus"))
|
||||
{
|
||||
// BeginPopupContextItem() is a helper to provide common/simple popup behavior of essentially doing:
|
||||
// if (IsItemHovered() && IsMouseReleased(0))
|
||||
// if (IsItemHovered() && IsMouseReleased(ImGuiMouseButton_Right))
|
||||
// OpenPopup(id);
|
||||
// return BeginPopup(id);
|
||||
// For more advanced uses you may want to replicate and customize this code.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue