| 12583 | } |
| 12584 | |
| 12585 | ImGuiMouseButton 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 | |
| 12598 | bool ImGui::IsPopupOpenRequestForItem(ImGuiPopupFlags popup_flags, ImGuiID id) |
| 12599 | { |
nothing calls this directly
no outgoing calls
no test coverage detected