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
-
Field Summary
Fields inherited from class io.qt.core.QEvent
staticMetaObject
-
Constructor Summary
ConstructorDescriptionSeeQContextMenuEvent::
QContextMenuEvent(QContextMenuEvent) QContextMenuEvent
(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
See
QContextMenuEvent::
QContextMenuEvent(QContextMenuEvent) - Parameters:
other
-
-
QContextMenuEvent
- Parameters:
reason
-pos
-
-
QContextMenuEvent
- Parameters:
reason
-pos
-globalPos
-
-
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifiers modifiers) See
QContextMenuEvent::
QContextMenuEvent(QContextMenuEvent::Reason, QPoint, QPoint, Qt::KeyboardModifiers) - Parameters:
reason
-pos
-globalPos
-modifiers
-
-
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifier ... modifiers)
-
-
Method Details
-
globalPos
- Returns:
-
globalX
- Returns:
-
globalY
- Returns:
-
pos
- Returns:
-
reason
- Returns:
-
x
- Returns:
-
y
- Returns:
-
setGlobalPos
See
QContextMenuEvent::
gp - Parameters:
globalPos
-
-
setPos
See
QContextMenuEvent::
p - Parameters:
pos
-
-
setReason
See
QContextMenuEvent::
reas - Parameters:
reason
-
-
clone
Creates and returns a copy of this object.
See
QContextMenuEvent::
QContextMenuEvent(QContextMenuEvent) - Overrides:
clone
in classQInputEvent
-