// // Generated by Brutal.ImGui.Generator; do not edit by hand. #nullable enable namespace Brutal.ImGuiApi { public partial class ImGui { public unsafe partial class PInvoke { /// /// /// helper to open popup when clicked on last item. Default to ImGuiPopupFlags_MouseButtonRight == 1. /// (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors) /// /// /// C++: /// imgui.h:866 /// , /// imgui.cpp:12946 ///
void OpenPopupOnItemClick(const char* str_id = NULL, ImGuiPopupFlags popup_flags = 1) ///
///
/// /// /// Popups: open/close functions /// - OpenPopup(): set popup state to open. ImGuiPopupFlags are available for opening options. /// - 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. /// - IMPORTANT: Notice that for OpenPopupOnItemClick() we exceptionally default flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter /// /// /// Helper to open a popup if mouse button is released over the item /// - This is essentially the same as BeginPopupContextItem() but without the trailing BeginPopup() /// /// [LibraryImport("imgui")] public static unsafe partial void OpenPopupOnItemClick(byte* str_id, ImGuiPopupFlags popup_flags); } } }