<class name="QGraphicsSceneContextMenuEvent" doc="/** <p>The <a href="QGraphicsSceneContextMenuEvent.html#QGraphicsSceneContextMenuEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneContextMenuEvent</tt></a> class provides context menu events in the graphics view framework.</p> <p>A <a href="QContextMenuEvent.html"><tt>QContextMenuEvent</tt></a> received by a <a href="QGraphicsView.html"><tt>QGraphicsView</tt></a> is translated into a <a href="QGraphicsSceneContextMenuEvent.html#QGraphicsSceneContextMenuEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneContextMenuEvent</tt></a>. The QWheelEvent::globalPos() is translated into item, scene, and screen coordinates (<a href="QGraphicsSceneContextMenuEvent.html#pos()"><tt>pos</tt></a>, <a href="QGraphicsSceneContextMenuEvent.html#scenePos()"><tt>scenePos</tt></a>, and <a href="QGraphicsSceneContextMenuEvent.html#screenPos()"><tt>screenPos</tt></a>).</p> @see <a href="QGraphicsSceneMouseEvent.html"><tt>QGraphicsSceneMouseEvent</tt></a> @see <a href="QGraphicsSceneWheelEvent.html"><tt>QGraphicsSceneWheelEvent</tt></a> @see <a href="QContextMenuEvent.html"><tt>QContextMenuEvent</tt></a> */"> <method name="public QGraphicsSceneContextMenuEvent(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 QGraphicsSceneContextMenuEvent()" doc="/** <p>Equivalent to <a href="QGraphicsSceneContextMenuEvent.html#QGraphicsSceneContextMenuEvent(com.trolltech.qt.core.QEvent.Type)"><tt>QGraphicsSceneContextMenuEvent</tt></a>(None). */"/> <method name="public final com.trolltech.qt.core.Qt.KeyboardModifiers modifiers()" doc="/** <p>Returns the keyboard modifiers in use when the context menu was requested.</p> @see <a href="QGraphicsSceneContextMenuEvent.html#setModifiers(com.trolltech.qt.core.Qt.KeyboardModifiers)"><tt>setModifiers</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPointF pos()" doc="/** <p>Returns the position of the mouse cursor in item coordinates at the moment the the context menu was requested.</p> @see <a href="QGraphicsSceneContextMenuEvent.html#setPos(com.trolltech.qt.core.QPointF)"><tt>setPos</tt></a> @see <a href="QGraphicsSceneContextMenuEvent.html#scenePos()"><tt>scenePos</tt></a> @see <a href="QGraphicsSceneContextMenuEvent.html#screenPos()"><tt>screenPos</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent.Reason reason()" doc="/** <p>Returns the reason for the context menu event.</p> @see <a href="QGraphicsSceneContextMenuEvent.html#setReason(com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent.Reason)"><tt>setReason</tt></a> @see <tt>QGraphicsSceneContextMenuEvent::Reason</tt> */"/> <method name="public final com.trolltech.qt.core.QPointF scenePos()" doc="/** <p>Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.</p> @see <a href="QGraphicsSceneContextMenuEvent.html#setScenePos(com.trolltech.qt.core.QPointF)"><tt>setScenePos</tt></a> @see <a href="QGraphicsSceneContextMenuEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneContextMenuEvent.html#screenPos()"><tt>screenPos</tt></a> */"/> <method name="public final com.trolltech.qt.core.QPoint screenPos()" doc="/** <p>Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.</p> @see <a href="QGraphicsSceneContextMenuEvent.html#setScreenPos(com.trolltech.qt.core.QPoint)"><tt>setScreenPos</tt></a> @see <a href="QGraphicsSceneContextMenuEvent.html#pos()"><tt>pos</tt></a> @see <a href="QGraphicsSceneContextMenuEvent.html#scenePos()"><tt>scenePos</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="QGraphicsSceneContextMenuEvent.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="QGraphicsSceneContextMenuEvent.html#pos()"><tt>pos</tt></a> */"/> <method name="public final void setReason(com.trolltech.qt.gui.QGraphicsSceneContextMenuEvent.Reason reason)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> @see <a href="QGraphicsSceneContextMenuEvent.html#reason()"><tt>reason</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="QGraphicsSceneContextMenuEvent.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="QGraphicsSceneContextMenuEvent.html#screenPos()"><tt>screenPos</tt></a> */"/> <enum name="Reason" doc="/** <p>This enum describes the reason why the context event was sent.</p> */"> <enum-value name="Mouse" doc="/** <p>The mouse caused the event to be sent. On most platforms, this means the right mouse button was clicked.</p> */"/> <enum-value name="Keyboard" doc="/** <p>The keyboard caused this event to be sent. On Windows and Mac OS X, this means the menu button was pressed.</p> */"/> <enum-value name="Other" doc="/** <p>The event was sent by some other means (i.e&#x2e; not by the mouse or keyboard).</p> */"/> </enum> </class>