<class name="QGraphicsSceneMouseEvent" doc="/** <p>The <a href="QGraphicsSceneMouseEvent.html#QGraphicsSceneMouseEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneMouseEvent</tt></a> class provides mouse events in the graphics view framework.</p> <p>When a <a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> receives a <a href="QMouseEvent.html"><tt>QMouseEvent</tt></a>, it translates it to a <a href="QGraphicsSceneMouseEvent.html#QGraphicsSceneMouseEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneMouseEvent</tt></a>. The event is then forwarded to the <a href="QGraphicsScene.html"><tt>QGraphicsScene</tt></a> associated with the view.</p> <p>In addition to containing the item, scene, and screen coordinates of the event (as <a href="QGraphicsSceneMouseEvent.html#pos()"><tt>pos</tt></a>, <a href="QGraphicsSceneMouseEvent.html#scenePos()"><tt>scenePos</tt></a>, and <a href="QGraphicsSceneMouseEvent.html#screenPos()"><tt>screenPos</tt></a>), mouse events also contain the coordinates of the previous mouse event received by the view. These can be retrieved with <a href="QGraphicsSceneMouseEvent.html#lastPos()"><tt>lastPos</tt></a>, <a href="QGraphicsSceneMouseEvent.html#lastScreenPos()"><tt>lastScreenPos</tt></a>, and <a href="QGraphicsSceneMouseEvent.html#lastScenePos()"><tt>lastScenePos</tt></a>.</p> @see <a href="QGraphicsSceneContextMenuEvent.html"><tt>QGraphicsSceneContextMenuEvent</tt></a> @see <a href="QGraphicsSceneHoverEvent.html"><tt>QGraphicsSceneHoverEvent</tt></a> @see <a href="QGraphicsSceneWheelEvent.html"><tt>QGraphicsSceneWheelEvent</tt></a> @see <a href="QMouseEvent.html"><tt>QMouseEvent</tt></a> */"> <method name="public QGraphicsSceneMouseEvent(com.trolltech.qt.core.QEvent.Type type)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <method name="public QGraphicsSceneMouseEvent()" doc="/** <p>Equivalent to <a href="QGraphicsSceneMouseEvent.html#QGraphicsSceneMouseEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneMouseEvent</tt></a>(None). */"/> <method name="public final com.trolltech.qt.core.Qt.MouseButton button()" doc="/** <p>Returns the mouse button (if any) that caused the event.</p> @see <a href="QGraphicsSceneMouseEvent.html#setButton(com.trolltech.qt.core.Qt.MouseButton)"><tt>setButton</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttons()"><tt>buttons</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#modifiers()"><tt>modifiers</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF buttonDownPos(com.trolltech.qt.core.Qt.MouseButton button)" doc="/** <p>Returns the mouse cursor position in item coordinates where the specified <tt>button</tt> was clicked.</p> @see <a href="QGraphicsSceneMouseEvent.html#setButtonDownPos(com.trolltech.qt.core.Qt.MouseButton, com.trolltech.qt.core.QPointF)"><tt>setButtonDownPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownScenePos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownScenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownScreenPos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#pos()"><tt>pos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF buttonDownScenePos(com.trolltech.qt.core.Qt.MouseButton button)" doc="/** <p>Returns the mouse cursor position in scene coordinates where the specified <tt>button</tt> was clicked.</p> @see <a href="QGraphicsSceneMouseEvent.html#setButtonDownScenePos(com.trolltech.qt.core.Qt.MouseButton, com.trolltech.qt.core.QPointF)"><tt>setButtonDownScenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownPos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownScreenPos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#scenePos()"><tt>scenePos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPoint buttonDownScreenPos(com.trolltech.qt.core.Qt.MouseButton button)" doc="/** <p>Returns the mouse cursor position in screen coordinates where the specified <tt>button</tt> was clicked.</p> @see <a href="QGraphicsSceneMouseEvent.html#setButtonDownScreenPos(com.trolltech.qt.core.Qt.MouseButton, com.trolltech.qt.core.QPoint)"><tt>setButtonDownScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#screenPos()"><tt>screenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownPos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownScenePos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownScenePos</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.MouseButtons buttons()" doc="/** <p>Returns the combination of mouse buttons that were pressed at the time the event was sent.</p> @see <a href="QGraphicsSceneMouseEvent.html#setButtons(com.trolltech.qt.core.Qt.MouseButtons)"><tt>setButtons</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#button()"><tt>button</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#modifiers()"><tt>modifiers</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF lastPos()" doc="/** <p>Returns the last recorded mouse cursor position in item coordinates.</p> @see <a href="QGraphicsSceneMouseEvent.html#setLastPos(com.trolltech.qt.core.QPointF)"><tt>setLastPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastScenePos()"><tt>lastScenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastScreenPos()"><tt>lastScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#pos()"><tt>pos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF lastScenePos()" doc="/** <p>Returns the last recorded mouse cursor position in scene coordinates. The last recorded position is the position of the previous mouse event received by the view that created the event.</p> @see <a href="QGraphicsSceneMouseEvent.html#setLastScenePos(com.trolltech.qt.core.QPointF)"><tt>setLastScenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastPos()"><tt>lastPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastScreenPos()"><tt>lastScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#scenePos()"><tt>scenePos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPoint lastScreenPos()" doc="/** <p>Returns the last recorded mouse cursor position in screen coordinates. The last recorded position is the position of the previous mouse event received by the view that created the event.</p> @see <a href="QGraphicsSceneMouseEvent.html#setLastScreenPos(com.trolltech.qt.core.QPoint)"><tt>setLastScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastPos()"><tt>lastPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastScenePos()"><tt>lastScenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#screenPos()"><tt>screenPos</tt></a> */"/> <method name="public final com.trolltech.qt.core.Qt.KeyboardModifiers modifiers()" doc="/** <p>Returns the keyboard modifiers in use at the time the event was sent.</p> @see <a href="QGraphicsSceneMouseEvent.html#setModifiers(com.trolltech.qt.core.Qt.KeyboardModifiers)"><tt>setModifiers</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#buttons()"><tt>buttons</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#button()"><tt>button</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF pos()" doc="/** <p>Returns the mouse cursor position in item coordinates.</p> @see <a href="QGraphicsSceneMouseEvent.html#setPos(com.trolltech.qt.core.QPointF)"><tt>setPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#scenePos()"><tt>scenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#screenPos()"><tt>screenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastPos()"><tt>lastPos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF scenePos()" doc="/** <p>Returns the mouse cursor position in scene coordinates.</p> @see <a href="QGraphicsSceneMouseEvent.html#setScenePos(com.trolltech.qt.core.QPointF)"><tt>setScenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#screenPos()"><tt>screenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastScenePos()"><tt>lastScenePos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPoint screenPos()" doc="/** <p>Returns the mouse cursor position in screen coordinates.</p> @see <a href="QGraphicsSceneMouseEvent.html#setScreenPos(com.trolltech.qt.core.QPoint)"><tt>setScreenPos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#scenePos()"><tt>scenePos</tt></a> @see <a href="QGraphicsSceneMouseEvent.html#lastScreenPos()"><tt>lastScreenPos</tt></a> */"/> <method name="public final void setButton(com.trolltech.qt.core.Qt.MouseButton button)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#button()"><tt>button</tt></a> */"/> <method name="public final void setButtonDownPos(com.trolltech.qt.core.Qt.MouseButton button, com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownPos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownPos</tt></a> */"/> <method name="public final void setButtonDownScenePos(com.trolltech.qt.core.Qt.MouseButton button, com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownScenePos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownScenePos</tt></a> */"/> <method name="public final void setButtonDownScreenPos(com.trolltech.qt.core.Qt.MouseButton button, com.trolltech.qt.core.QPoint pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#buttonDownScreenPos(com.trolltech.qt.core.Qt.MouseButton)"><tt>buttonDownScreenPos</tt></a> */"/> <method name="public final void setButtons(com.trolltech.qt.core.Qt.MouseButtons buttons)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#buttons()"><tt>buttons</tt></a> */"/> <method name="public final void setLastPos(com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#lastPos()"><tt>lastPos</tt></a> */"/> <method name="public final void setLastScenePos(com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#lastScenePos()"><tt>lastScenePos</tt></a> */"/> <method name="public final void setLastScreenPos(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#lastScreenPos()"><tt>lastScreenPos</tt></a> */"/> <method name="public final void setModifiers(com.trolltech.qt.core.Qt.KeyboardModifiers modifiers)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#modifiers()"><tt>modifiers</tt></a> */"/> <method name="public final void setPos(com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#pos()"><tt>pos</tt></a> */"/> <method name="public final void setScenePos(com.trolltech.qt.core.QPointF pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#scenePos()"><tt>scenePos</tt></a> */"/> <method name="public final void setScreenPos(com.trolltech.qt.core.QPoint pos)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneMouseEvent.html#screenPos()"><tt>screenPos</tt></a> */"/> </class>