MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / GetMouseButtonFromPopupFlags

Method GetMouseButtonFromPopupFlags

include/imgui/imgui.cpp:12585–12596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12583}
12584
12585ImGuiMouseButton ImGui::GetMouseButtonFromPopupFlags(ImGuiPopupFlags flags)
12586{
12587#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
12588 if ((flags & ImGuiPopupFlags_InvalidMask_) != 0) // 1,2 --> ImGuiMouseButton_Right, ImGuiMouseButton_Middle
12589 return (flags & ImGuiPopupFlags_InvalidMask_);
12590#else
12591 IM_ASSERT((flags & ImGuiPopupFlags_InvalidMask_) == 0);
12592#endif
12593 if (flags & ImGuiPopupFlags_MouseButtonMask_)
12594 return ((flags & ImGuiPopupFlags_MouseButtonMask_) >> ImGuiPopupFlags_MouseButtonShift_) - 1;
12595 return ImGuiMouseButton_Right; // Default == 1
12596}
12597
12598bool ImGui::IsPopupOpenRequestForItem(ImGuiPopupFlags popup_flags, ImGuiID id)
12599{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected