java.lang.Object
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QContextMenuEvent
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Contains parameters that describe a context menu event
Java wrapper for Qt class QContextMenuEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QEvent
QEvent.Type
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Fields inherited from class io.qt.core.QEvent
staticMetaObject
-
Constructor Summary
ConstructorDescriptionQContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifier ... modifiers) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifiers modifiers) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final QPoint
final int
globalX()
final int
globalY()
final QPoint
pos()
final QContextMenuEvent.Reason
reason()
protected final void
setGlobalPos
(QPoint globalPos) SeeQContextMenuEvent::
gp protected final void
SeeQContextMenuEvent::
p protected final void
setReason
(int reason) SeeQContextMenuEvent::
reas final int
x()
final int
y()
Methods inherited from class io.qt.gui.QInputEvent
modifiers, setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, assign, ignore, isAccepted, registerEventType, registerEventType, set, setAccepted, spontaneous, toString, type
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QContextMenuEvent
-
QContextMenuEvent
-
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifier ... modifiers) -
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifiers modifiers)
-
-
Method Details
-
globalPos
-
globalX
-
globalY
-
pos
-
reason
-
x
-
y
-
setGlobalPos
See
QContextMenuEvent::
gp -
setPos
See
QContextMenuEvent::
p -
setReason
See
QContextMenuEvent::
reas -
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQInputEvent
-