| 13201 | } |
| 13202 | |
| 13203 | ImGuiMouseButton 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 | |
| 13216 | bool ImGui::IsPopupOpenRequestForItem(ImGuiPopupFlags popup_flags, ImGuiID id) |
| 13217 | { |
nothing calls this directly
no outgoing calls
no test coverage detected