/dports/games/renpy/renpy-7.4.11-sdk/renpy/test/ |
H A D | testmouse.py | 28 mouse_pos = None variable 39 if mouse_pos is None: 42 return mouse_pos 54 global mouse_pos 58 if mouse_pos != pos: 59 if mouse_pos: 60 rel = (pos[0] - mouse_pos[0], pos[1] - mouse_pos[1]) 66 mouse_pos = pos 84 post(pygame.MOUSEBUTTONUP, pos=mouse_pos, button=button) 105 global mouse_pos [all …]
|
/dports/multimedia/aegisub/aegisub-3.2.2/src/ |
H A D | visual_tool_cross.cpp | 44 Vector2D d = ToScriptCoords(mouse_pos) - GetLinePosition(active_line); in OnDoubleClick() 66 if (!mouse_pos) return; in Draw() 72 0.f, mouse_pos.Y(), in Draw() 73 video_res.X() + video_pos.X() * 2, mouse_pos.Y(), in Draw() 74 mouse_pos.X(), 0.f, in Draw() 75 mouse_pos.X(), video_res.Y() + video_pos.Y() * 2 in Draw() 80 std::string mouse_text = Text(ToScriptCoords(shift_down ? video_res - mouse_pos : mouse_pos)); in Draw() 88 int dx = mouse_pos.X(); in Draw() 89 int dy = mouse_pos.Y(); in Draw()
|
H A D | visual_tool_vector_clip.cpp | 155 if (spline.size() && mouse_pos) { in Draw() 159 gl.DrawDashedLine(mouse_pos, c0->p1, 6); in Draw() 283 curve.p1 = mouse_pos; in InitializeHold() 352 spline.emplace_back(mouse_pos); in InitializeHold() 371 Vector2D p1 = drag_start.Min(mouse_pos); in UpdateHold() 372 Vector2D p2 = drag_start.Max(mouse_pos); in UpdateHold() 394 spline.back().EndPoint() = mouse_pos; in UpdateHold() 395 features.back().pos = mouse_pos; in UpdateHold() 401 curve.EndPoint() = mouse_pos; in UpdateHold() 419 float len = (last - mouse_pos).SquareLen(); in UpdateHold() [all …]
|
/dports/graphics/scantailor/scantailor-advanced-1.0.16/interaction/ |
H A D | DraggableObject.h | 39 typedef boost::function<Proximity(const QPointF& mouse_pos)> ProximityCallback; 41 typedef boost::function<void(const QPointF& mouse_pos)> DragInitiatedCallback; 43 …typedef boost::function<void(const QPointF& mouse_pos, Qt::KeyboardModifiers mask)> DragContinuati… 45 typedef boost::function<void(const QPointF& mouse_pos)> DragFinishedCallback; 96 virtual void dragInitiated(const QPointF& mouse_pos) { m_dragInitiatedCallback(mouse_pos); } in dragInitiated() argument 103 virtual void dragContinuation(const QPointF& mouse_pos, Qt::KeyboardModifiers mask) { in dragContinuation() argument 104 m_dragContinuationCallback(mouse_pos, mask); in dragContinuation() 112 virtual void dragFinished(const QPointF& mouse_pos) { m_dragFinishedCallback(mouse_pos); } in dragFinished() argument
|
H A D | DraggableLineSegment.cpp | 29 Proximity DraggableLineSegment::proximity(const QPointF& mouse_pos) { in proximity() argument 30 return Proximity::pointAndLineSegment(mouse_pos, lineSegmentPosition()); in proximity() 33 void DraggableLineSegment::dragInitiated(const QPointF& mouse_pos) { in dragInitiated() argument 34 m_initialMousePos = mouse_pos; in dragInitiated() 38 void DraggableLineSegment::dragContinuation(const QPointF& mouse_pos, Qt::KeyboardModifiers mask) { in dragContinuation() argument 39 lineSegmentMoveRequest(m_initialLinePos.translated(mouse_pos - m_initialMousePos), mask); in dragContinuation()
|
H A D | DraggablePolygon.cpp | 12 Proximity DraggablePolygon::proximity(const QPointF& mouse_pos) { in proximity() argument 13 …double value = polygonPosition().containsPoint(mouse_pos, Qt::WindingFill) ? 0 : std::numeric_limi… in proximity() 17 void DraggablePolygon::dragInitiated(const QPointF& mouse_pos) { in dragInitiated() argument 18 m_initialMousePos = mouse_pos; in dragInitiated() 22 void DraggablePolygon::dragContinuation(const QPointF& mouse_pos, Qt::KeyboardModifiers mask) { in dragContinuation() argument 23 polygonMoveRequest(m_initialPolygonPos.translated(mouse_pos - m_initialMousePos)); in dragContinuation()
|
H A D | DraggablePoint.cpp | 36 Proximity DraggablePoint::proximity(const QPointF& mouse_pos) { in proximity() argument 37 return Proximity(pointPosition(), mouse_pos); in proximity() 40 void DraggablePoint::dragInitiated(const QPointF& mouse_pos) { in dragInitiated() argument 41 m_pointRelativeToMouse = pointPosition() - mouse_pos; in dragInitiated() 44 void DraggablePoint::dragContinuation(const QPointF& mouse_pos, Qt::KeyboardModifiers mask) { in dragContinuation() argument 45 pointMoveRequest(mouse_pos + m_pointRelativeToMouse, mask); in dragContinuation()
|
H A D | DraggablePoint.h | 30 …typedef boost::function<void(const QPointF& mouse_pos, Qt::KeyboardModifiers mask)> MoveRequestCal… 48 Proximity proximity(const QPointF& mouse_pos) override; 50 void dragInitiated(const QPointF& mouse_pos) override; 52 void dragContinuation(const QPointF& mouse_pos, Qt::KeyboardModifiers mask) override;
|
/dports/x11/kitty/kitty-0.23.1/kitty/ |
H A D | mouse.c | 214 w->mouse_pos.x = mouse_x - left; w->mouse_pos.y = mouse_y - top; in cell_for_pos() 249 …screen_update_selection(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y, w->mouse_pos.in_left_hal… in update_drag() 287 …screen_update_selection(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y, w->mouse_pos.in_left_hal… in extend_selection() 329 bool mouse_cell_changed = x != w->mouse_pos.cell_x || y != w->mouse_pos.cell_y; in HANDLER() 331 w->mouse_pos.cell_x = x; w->mouse_pos.cell_y = y; in HANDLER() 409 detect_url(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y); in mouse_open_url() 605 …screen_start_selection(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y, w->mouse_pos.in_left_half… in mouse_selection() 610 …screen_start_selection(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y, w->mouse_pos.in_left_half… in mouse_selection() 613 …screen_start_selection(screen, w->mouse_pos.cell_x, w->mouse_pos.cell_y, w->mouse_pos.in_left_half… in mouse_selection() 828 w->mouse_pos.x = 10 * x; w->mouse_pos.y = 20 * y; in send_mock_mouse_event_to_window() [all …]
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/src/interface/ |
H A D | control_scrollbar.cpp | 88 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(button.x, button.y); in on_mouse_button_down() local 89 if (get_bar_rect().contains(int(mouse_pos.x), int(mouse_pos.y))) { in on_mouse_button_down() 105 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(motion.x, motion.y); in on_mouse_motion() local 115 m_hovering = get_bar_rect().contains(int(mouse_pos.x), int(mouse_pos.y)); in on_mouse_motion() 117 …int new_progress = m_progress + int((mouse_pos.y - last_mouse_pos) * VideoSystem::current()->get_v… in on_mouse_motion() 118 last_mouse_pos = mouse_pos.y; in on_mouse_motion()
|
H A D | control_checkbox.cpp | 54 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(button.x, button.y); in on_mouse_button_up() local 56 if (!m_rect.contains(mouse_pos)) in on_mouse_button_up() 72 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(button.x, button.y); in on_mouse_button_down() local 73 if (!m_rect.contains(mouse_pos)) { in on_mouse_button_down()
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/src/editor/ |
H A D | button_widget.cpp | 72 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(button.x, button.y); in on_mouse_button_up() local 75 if (m_rect.contains(mouse_pos)) { in on_mouse_button_up() 93 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(button.x, button.y); in on_mouse_button_down() local 95 if (m_rect.contains(mouse_pos)) { in on_mouse_button_down() 108 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(motion.x, motion.y); in on_mouse_motion() local 111 m_hover = m_rect.contains(mouse_pos); in on_mouse_motion() 113 } else if (m_rect.contains(mouse_pos)) { in on_mouse_motion()
|
/dports/graphics/freeglut/freeglut-3.2.1/src/wayland/ |
H A D | fg_cursor_wl.c | 117 void fghPlatformGetCursorPos(const SFG_Window *window, GLboolean client, SFG_XYUse *mouse_pos) in fghPlatformGetCursorPos() argument 125 mouse_pos->X = window->State.MouseX; in fghPlatformGetCursorPos() 126 mouse_pos->Y = window->State.MouseY; in fghPlatformGetCursorPos() 131 mouse_pos->X = -1; in fghPlatformGetCursorPos() 132 mouse_pos->Y = -1; in fghPlatformGetCursorPos() 135 mouse_pos->Use = GL_TRUE; in fghPlatformGetCursorPos()
|
/dports/games/dreamchess/dreamchess-0.3.0/dreamchess/src/gui/ |
H A D | system.c | 48 } mouse_pos; variable 55 mouse_pos.x = x; in set_mouse_pos() 56 mouse_pos.y = y; in set_mouse_pos() 60 return mouse_pos.x; in get_true_mouse_x() 64 return mouse_pos.y; in get_true_mouse_y() 68 return ((float)mouse_pos.x / (float)get_screen_width()) * get_gl_width(); in get_mouse_x() 72 return ((float)mouse_pos.y / (float)get_screen_height()) * 480; in get_mouse_y()
|
/dports/emulators/fs-uae-launcher/fs-uae-launcher-3.0.5/launcher/ui/ |
H A D | titlebar.py | 26 self.mouse_pos = (-1, -1) 45 self.mouse_pos = fsui.get_mouse_position() 48 mouse_pos = fsui.get_mouse_position() 50 self.window_pos[0] + mouse_pos[0] - self.mouse_pos[0], 51 self.window_pos[1] + mouse_pos[1] - self.mouse_pos[1],
|
/dports/games/warmux/warmux-11.04/src/interface/ |
H A D | interface.h | 146 bool ReplayClick(const Point2i &mouse_pos, ClickType type, Point2i old_mouse_pos = Point2i()); 147 bool ControlClick(const Point2i &mouse_pos, ClickType type, Point2i old_mouse_pos = Point2i()); 148 bool DefaultClick(const Point2i &mouse_pos, ClickType type, Point2i old_mouse_pos = Point2i()); 150 int AnyClick(const Point2i &mouse_pos, ClickType type, Point2i old_mouse_pos = Point2i()); 181 bool Intersect(const Point2i &mouse_pos); 183 bool ActionClickUp(const Point2i &mouse_pos, const Point2i &old_click_pos); 184 bool ActionLongClick(const Point2i &mouse_pos, const Point2i &old_mouse_pos); 185 bool ActionClickDown(const Point2i &mouse_pos);
|
H A D | interface.cpp | 717 Point2i mouse_rel_pos = mouse_pos-bottom_bar_pos; in ControlClick() 885 Point2i mouse_rel_pos = mouse_pos-bottom_bar_pos; in ReplayClick() 938 Point2i mouse_rel_pos = mouse_pos-bottom_bar_pos; in DefaultClick() 969 Point2i mouse_rel_pos = mouse_pos - bottom_bar_pos; in AnyClick() 977 if (clock_button.Contains(mouse_pos-bottom_bar_pos)) { in AnyClick() 1036 bool Interface::ActionClickDown(const Point2i &mouse_pos) in ActionClickDown() argument 1043 switch (AnyClick(mouse_pos, CLICK_TYPE_DOWN)) { in ActionClickDown() 1063 if (small_button.Contains(mouse_pos)) { in ActionClickDown() 1131 if (small_button.Contains(mouse_pos)) { in ActionClickUp() 1140 if (rect_preview.Contains(mouse_pos)) { in ActionClickUp() [all …]
|
/dports/audio/kwave/kwave-21.12.3/libgui/ |
H A D | SignalView.cpp | 336 const QPoint mouse_pos( in mouseMoveEvent() local 343 if (mouse_pos == last_pos) { in mouseMoveEvent() 387 findNewItem(mouse_pos, false); in mouseMoveEvent() 412 const QPoint mouse_pos( in mousePressEvent() local 417 findNewItem(mouse_pos, false); in mousePressEvent() 435 findNewItem(mouse_pos, true); in mousePressEvent() 447 m_mouse_down_x = mouse_pos.x(); in mousePressEvent() 456 findNewItem(mouse_pos, true); in mousePressEvent() 486 const QPoint mouse_pos( in mouseReleaseEvent() local 495 findNewItem(mouse_pos, false); in mouseReleaseEvent() [all …]
|
/dports/graphics/freeglut/freeglut-3.2.1/src/x11/ |
H A D | fg_cursor_x11.c | 161 void fghPlatformGetCursorPos(const SFG_Window *window, GLboolean client, SFG_XYUse *mouse_pos) in fghPlatformGetCursorPos() argument 173 &mouse_pos->X, &mouse_pos->Y, /* Screen coords relative to root window's top-left */ in fghPlatformGetCursorPos() 179 mouse_pos->X = clientX; in fghPlatformGetCursorPos() 180 mouse_pos->Y = clientY; in fghPlatformGetCursorPos() 183 mouse_pos->Use = GL_TRUE; in fghPlatformGetCursorPos()
|
/dports/graphics/mupdf/mupdf-1.18.0-source/thirdparty/freeglut/src/x11/ |
H A D | fg_cursor_x11.c | 161 void fghPlatformGetCursorPos(const SFG_Window *window, GLboolean client, SFG_XYUse *mouse_pos) in fghPlatformGetCursorPos() argument 173 &mouse_pos->X, &mouse_pos->Y, /* Screen coords relative to root window's top-left */ in fghPlatformGetCursorPos() 179 mouse_pos->X = clientX; in fghPlatformGetCursorPos() 180 mouse_pos->Y = clientY; in fghPlatformGetCursorPos() 183 mouse_pos->Use = GL_TRUE; in fghPlatformGetCursorPos()
|
/dports/graphics/scantailor/scantailor-advanced-1.0.16/filters/page_layout/ |
H A D | ImageView.h | 131 Proximity cornerProximity(int edge_mask, const QRectF* box, const QPointF& mouse_pos) const; 133 Proximity edgeProximity(int edge_mask, const QRectF* box, const QPointF& mouse_pos) const; 135 void dragInitiated(const QPointF& mouse_pos); 137 void innerRectDragContinuation(int edge_mask, const QPointF& mouse_pos); 139 void middleRectDragContinuation(int edge_mask, const QPointF& mouse_pos); 193 Proximity rectProximity(const QRectF& box, const QPointF& mouse_pos) const; 195 void innerRectMoveRequest(const QPointF& mouse_pos, Qt::KeyboardModifiers mask = Qt::NoModifier);
|
/dports/devel/cc65/cc65-2.19/include/ |
H A D | mouse.h | 62 struct mouse_pos { struct 69 struct mouse_pos pos; /* Mouse position */ argument 206 void __fastcall__ mouse_pos (struct mouse_pos* pos);
|
/dports/devel/godot-tools/godot-demo-projects-8d9d58f112d8/2d/gd_paint/ |
H A D | paint_control.gd | 57 if mouse_pos.x > TL_node.global_position.x: 66 mouse_click_start_pos = mouse_pos 79 add_brush(mouse_pos, brush_mode) 90 add_brush(mouse_pos, brush_mode) 99 last_mouse_pos = mouse_pos 147 func add_brush(mouse_pos, type): 154 new_brush.brush_pos = mouse_pos 167 TL_pos.x = mouse_pos.x 171 BR_pos.x = mouse_pos.x 175 TL_pos.y = mouse_pos.y [all …]
|
/dports/misc/vxl/vxl-3.3.2/contrib/brl/bbas/bgui3d/ |
H A D | bgui3d_examiner_slider_tableau.cxx | 177 int mouse_pos = static_cast<int>((viewport_size[1] - e.wy)*255.0/slider_height_); in handle() local 178 if (mouse_pos >= this->min-10 && mouse_pos <= this->min + 10) { in handle() 179 transfer_callback(true, mouse_pos, this->max); in handle() 182 else if (mouse_pos >= this->max -10 && mouse_pos <= this->max + 10) in handle() 184 transfer_callback(true, this->min, mouse_pos); in handle()
|
/dports/games/supertux2/SuperTux-v0.6.3-Source/src/gui/ |
H A D | mousecursor.cpp | 110 Vector mouse_pos = VideoSystem::current()->get_viewport().to_logical(x, y); in draw() local 112 m_sprite->draw(context.color(), mouse_pos, LAYER_GUI + 100); in draw() 116 Vector(mouse_pos.x, in draw() 117 mouse_pos.y - static_cast<float>(m_icon->get_height())), in draw()
|