Searched refs:mouse_button (Results 1 - 5 of 5) sorted by relevance
/third_party/mesa3d/src/imgui/ |
H A D | imgui.h | 544 IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, int mouse_button = 1); // helper to open and begin popup when clicked on last item. if you can pass a NULL str_id only if the previous item had an id. If you want to use that on a non-interactive item such as Text() you need to pass in an explicit ID here. read comments in .cpp! 545 IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, int mouse_button = 1, bool also_over_items = true); // helper to open and begin popup when clicked on current window. 546 IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, int mouse_button = 1); // helper to open and begin popup when clicked in void (where there are no imgui windows). 549 IMGUI_API bool OpenPopupOnItemClick(const char* str_id = NULL, int mouse_button = 1); // helper to open popup when clicked on last item (note: actually triggers on the mouse _released_ event to be consistent with popup behaviors). return true when just opened. 607 IMGUI_API bool IsItemClicked(int mouse_button = 0); // is the last item clicked? (e.g. button/node just clicked on) == IsMouseClicked(mouse_button) && IsItemHovered()
|
H A D | imgui.cpp | 404 - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. 4252 bool ImGui::IsItemClicked(int mouse_button) in IsItemClicked() argument 4254 return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); in IsItemClicked() 6798 bool ImGui::OpenPopupOnItemClick(const char* str_id, int mouse_button) in OpenPopupOnItemClick() argument 6801 if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) in OpenPopupOnItemClick() 6981 bool ImGui::BeginPopupContextItem(const char* str_id, int mouse_button) in BeginPopupContextItem() argument 6986 if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) in BeginPopupContextItem() 6991 bool ImGui::BeginPopupContextWindow(const char* str_id, int mouse_button, bool also_over_items) in BeginPopupContextWindow() argument 6996 if (IsMouseReleased(mouse_button) && IsWindowHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) in BeginPopupContextWindow() 7002 bool ImGui::BeginPopupContextVoid(const char* str_id, int mouse_button) in BeginPopupContextVoid() argument 8498 int mouse_button = 0; BeginDragDropSource() local [all...] |
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui.cpp | 450 - 2020/06/23 (1.77) - removed BeginPopupContextWindow(const char*, int mouse_button, bool also_over_items) in favor of BeginPopupContextWindow(const char*, ImGuiPopupFlags flags) with ImGuiPopupFlags_NoOverItems. 533 - 2018/02/18 (1.60) - BeginDragDropSource(): temporarily removed the optional mouse_button=0 parameter because it is not really usable in many situations at the moment. 4912 bool ImGui::IsItemClicked(ImGuiMouseButton mouse_button) in IsItemClicked() argument 4914 return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); in IsItemClicked() 8581 int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); in OpenPopupOnItemClick() local 8582 if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) in OpenPopupOnItemClick() 8614 int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); in BeginPopupContextItem() local 8615 if (IsMouseReleased(mouse_button) && IsItemHovered(ImGuiHoveredFlags_AllowWhenBlockedByPopup)) in BeginPopupContextItem() 8627 int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); in BeginPopupContextWindow() local 8628 if (IsMouseReleased(mouse_button) in BeginPopupContextWindow() 8641 int mouse_button = (popup_flags & ImGuiPopupFlags_MouseButtonMask_); BeginPopupContextVoid() local 10132 ImGuiMouseButton mouse_button = ImGuiMouseButton_Left; BeginDragDropSource() local [all...] |
H A D | imgui_widgets.cpp | 631 const int mouse_button = g.ActiveIdMouseButton; in ButtonBehavior() local 632 IM_ASSERT(mouse_button >= 0 && mouse_button < ImGuiMouseButton_COUNT); in ButtonBehavior() 633 if (g.IO.MouseDown[mouse_button]) in ButtonBehavior() 644 bool is_double_click_release = (flags & ImGuiButtonFlags_PressedOnDoubleClick) && g.IO.MouseDownWasDoubleClick[mouse_button]; in ButtonBehavior() 645 bool is_repeating_already = (flags & ImGuiButtonFlags_Repeat) && g.IO.MouseDownDurationPrev[mouse_button] >= g.IO.KeyRepeatDelay; // Repeat mode trumps <on release> in ButtonBehavior()
|
H A D | imgui.h | 702 // - IMPORTANT: we exceptionally default their flags to 1 (== ImGuiPopupFlags_MouseButtonRight) for backward compatibility with older API taking 'int mouse_button = 1' parameter, so if you add other flags remember to re-add the ImGuiPopupFlags_MouseButtonRight. 840 IMGUI_API bool IsItemClicked(ImGuiMouseButton mouse_button = 0); // is the last item hovered and mouse clicked on? (**) == IsMouseClicked(mouse_button) && IsItemHovered()Important. (**) this it NOT equivalent to the behavior of e.g. Button(). Read comments in function definition. 1042 // - To be backward compatible with older API which took an 'int mouse_button = 1' argument, we need to treat
|
Completed in 63 milliseconds