Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QGraphicsSceneContextMenuEvent Class Reference

The QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework. More...

Inheritance diagram for QtGui.QGraphicsSceneContextMenuEvent:
Collaboration diagram for QtGui.QGraphicsSceneContextMenuEvent:

Public Types

enum  Reason { Keyboard = 1, Mouse = 0, Other = 2 }
  More...
 

Public Member Functions

 QGraphicsSceneContextMenuEvent (QEvent.Type type=QEvent.Type.None)
 
override void CreateProxy ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QGraphicsSceneEvent
 QGraphicsSceneEvent (QEvent.Type type)
 
override void CreateProxy ()
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.QEvent
 QEvent (QEvent copy)
 
 
 QEvent (QEvent.Type type)
 
 
new void Accept ()
 
 
new void Ignore ()
 
 
new bool IsAccepted ()
 
new void SetAccepted (bool accepted)
 
new bool Spontaneous ()
 
 
new QEvent.Type type ()
 
 
new void Dispose ()
 

Protected Member Functions

 QGraphicsSceneContextMenuEvent (System.Type dummy)
 
- Protected Member Functions inherited from QtGui.QGraphicsSceneEvent
 QGraphicsSceneEvent (System.Type dummy)
 
- Protected Member Functions inherited from QtCore.QEvent
 QEvent (System.Type dummy)
 

Properties

new Qt.KeyboardModifier Modifiers [get, set]
 
 
new QPointF Pos [get, set]
 
 
new
QGraphicsSceneContextMenuEvent.Reason 
reason [get, set]
 
 
new QPointF ScenePos [get, set]
 
 
new QPoint ScreenPos [get, set]
 
 
- Properties inherited from QtGui.QGraphicsSceneEvent
new QWidget Widget [get, set]
 
 
- Properties inherited from QtCore.QEvent
virtual System.IntPtr SmokeObject [get, set]
 
new ushort T [get, set]
 
static new QMetaObject StaticMetaObject [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from QtCore.QEvent
static int RegisterEventType (int hint=-1)
 
 
- Protected Attributes inherited from QtCore.QEvent
SmokeInvocation interceptor
 

Detailed Description

The QGraphicsSceneContextMenuEvent class provides context menu events in the graphics view framework.

A QContextMenuEvent received by a QGraphicsView is translated into a QGraphicsSceneContextMenuEvent. The QContextMenuEvent::globalPos() is translated into item, scene, and screen coordinates (pos(), scenePos(), and screenPos()).

See also QGraphicsSceneMouseEvent, QGraphicsSceneWheelEvent, and QContextMenuEvent.

Member Enumeration Documentation

This enum describes the reason why the context event was sent.

Enumerator:
Keyboard 

The keyboard caused this event to be sent. On Windows and Mac OS X, this means the menu button was pressed.

Mouse 

The mouse caused the event to be sent. On most platforms, this means the right mouse button was clicked.

Other 

The event was sent by some other means (i.e. not by the mouse or keyboard).

Constructor & Destructor Documentation

QtGui.QGraphicsSceneContextMenuEvent.QGraphicsSceneContextMenuEvent ( System.Type  dummy)
protected
QtGui.QGraphicsSceneContextMenuEvent.QGraphicsSceneContextMenuEvent ( QEvent.Type  type = QEvent.Type.None)

Member Function Documentation

override void QtGui.QGraphicsSceneContextMenuEvent.CreateProxy ( )
virtual

Reimplemented from QtCore.QEvent.

new void QtGui.QGraphicsSceneContextMenuEvent.Dispose ( )

Property Documentation

new Qt.KeyboardModifier QtGui.QGraphicsSceneContextMenuEvent.Modifiers
getset

Returns the keyboard modifiers in use when the context menu was requested.

new QPointF QtGui.QGraphicsSceneContextMenuEvent.Pos
getset

Returns the position of the mouse cursor in item coordinates at the moment the context menu was requested.

new QGraphicsSceneContextMenuEvent.Reason QtGui.QGraphicsSceneContextMenuEvent.reason
getset

Returns the reason for the context menu event.

new QPointF QtGui.QGraphicsSceneContextMenuEvent.ScenePos
getset

Returns the position of the mouse cursor in scene coordinates at the moment the the context menu was requested.

new QPoint QtGui.QGraphicsSceneContextMenuEvent.ScreenPos
getset

Returns the position of the mouse cursor in screen coordinates at the moment the the context menu was requested.