Searched refs:IsMouseClicked (Results 1 - 9 of 9) sorted by relevance
/third_party/skia/tools/viewer/ |
H A D | SkSLSlide.cpp | 149 if (ImGui::IsMouseClicked(0)) { in draw() 154 fMousePos.w = abs(fMousePos.w) * (ImGui::IsMouseClicked(0) ? 1 : -1); in draw()
|
/third_party/mesa3d/src/imgui/ |
H A D | imgui_memory_editor.h | 201 if (ImGui::IsWindowHovered(ImGuiHoveredFlags_RootAndChildWindows) && ImGui::IsMouseClicked(1)) in DrawWindow() 394 if (!ReadOnly && ImGui::IsItemHovered() && ImGui::IsMouseClicked(0)) in DrawContents()
|
H A D | imgui.h | 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() 650 IMGUI_API bool IsMouseClicked(int button, bool repeat = false); // did mouse button clicked (went from !Down to Down) (0=left, 1=right, 2=middle) 651 IMGUI_API bool IsMouseDoubleClicked(int button); // did mouse button double-clicked. a double-click returns false in IsMouseClicked(). uses io.MouseDoubleClickTime. 815 ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. 830 ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
|
H A D | imgui_widgets.cpp | 476 // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. in ButtonBehavior() 477 if ((flags & ImGuiButtonFlags_Repeat) && g.ActiveId == id && g.IO.MouseDownDuration[0] > 0.0f && IsMouseClicked(0, true)) in ButtonBehavior() 6500 if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1))) 6619 if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2))
|
H A D | imgui.cpp | 4095 bool ImGui::IsMouseClicked(int button, bool repeat) in IsMouseClicked() function in ImGui 4254 return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); in IsItemClicked()
|
/third_party/skia/third_party/externals/imgui/ |
H A D | imgui_widgets.cpp | 592 // Relies on repeat logic of IsMouseClicked() but we may as well do it ourselves if we end up exposing finer RepeatDelay/RepeatRate settings. in ButtonBehavior() 594 if (g.IO.MouseDownDuration[g.ActiveIdMouseButton] > 0.0f && IsMouseClicked(g.ActiveIdMouseButton, true)) in ButtonBehavior() 8036 if (hovered_unblocked && (IsMouseClicked(1) || IsMouseReleased(1))) 8187 if (!(flags & ImGuiTabItemFlags_NoCloseWithMiddleMouseButton) && IsMouseClicked(2))
|
H A D | imgui.h | 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. 900 IMGUI_API bool IsMouseClicked(ImGuiMouseButton button, bool repeat = false); // did mouse button clicked? (went from !Down to Down) 902 IMGUI_API bool IsMouseDoubleClicked(ImGuiMouseButton button); // did mouse button double-clicked? (note that a double-click will also report IsMouseClicked() == true) 1096 ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 1 << 3, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false. 1111 ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 1 << 2, // Disable behavior of closing tabs (that are submitted with p_open != NULL) with middle mouse button. You can still repro this behavior on user's side with if (IsItemHovered() && IsMouseClicked(2)) *p_open = false.
|
H A D | imgui_demo.cpp | 5522 ImGui::Text("Mouse clicked:"); for (int i = 0; i < IM_ARRAYSIZE(io.MouseDown); i++) if (ImGui::IsMouseClicked(i)) { ImGui::SameLine(); ImGui::Text("b%d", i); } 7303 if (is_hovered && !adding_line && ImGui::IsMouseClicked(ImGuiMouseButton_Left))
|
H A D | imgui.cpp | 4739 bool ImGui::IsMouseClicked(ImGuiMouseButton button, bool repeat) in IsMouseClicked() function in ImGui 4914 return IsMouseClicked(mouse_button) && IsItemHovered(ImGuiHoveredFlags_None); in IsItemClicked() 12059 if (IsMouseClicked(0) && hovered_id) in UpdateDebugToolItemPicker()
|
Completed in 89 milliseconds