MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / GetMouseButtonFromPopupFlags

Method GetMouseButtonFromPopupFlags

imgui_tiny_app/imgui/imgui.cpp:13203–13214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13201}
13202
13203ImGuiMouseButton ImGui::GetMouseButtonFromPopupFlags(ImGuiPopupFlags flags)
13204{
13205#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
13206 if ((flags & ImGuiPopupFlags_InvalidMask_) != 0) // 1,2 --> ImGuiMouseButton_Right, ImGuiMouseButton_Middle
13207 return (flags & ImGuiPopupFlags_InvalidMask_);
13208#else
13209 IM_ASSERT((flags & ImGuiPopupFlags_InvalidMask_) == 0);
13210#endif
13211 if (flags & ImGuiPopupFlags_MouseButtonMask_)
13212 return ((flags & ImGuiPopupFlags_MouseButtonMask_) >> ImGuiPopupFlags_MouseButtonShift_) - 1;
13213 return ImGuiMouseButton_Right; // Default == 1
13214}
13215
13216bool ImGui::IsPopupOpenRequestForItem(ImGuiPopupFlags popup_flags, ImGuiID id)
13217{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected