java.lang.Object
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QContextMenuEvent
- All Implemented Interfaces:
QtObjectInterface
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
ModifierConstructorDescriptionprotected
QContextMenuEvent
(QContextMenuEvent arg__1) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos) QContextMenuEvent
(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos) Overloaded constructor forQContextMenuEvent(io.qt.gui.QContextMenuEvent.Reason, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.KeyboardModifiers)
withmodifiers = new io.qt.core.Qt.KeyboardModifiers(0)
.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 TypeMethodDescriptionprotected final void
assign
(QContextMenuEvent other) SeeQContextMenuEvent::
operator=(QContextMenuEvent) clone()
final QPoint
final int
globalX()
final int
globalY()
final QPoint
pos()
final QContextMenuEvent.Reason
reason()
protected final void
set
(QContextMenuEvent other) Deprecated.final int
x()
final int
y()
Methods inherited from class io.qt.gui.QInputEvent
assign, device, deviceType, modifiers, set, setDevice, setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, assign, ignore, isAccepted, isInputEvent, isPointerEvent, isSinglePointEvent, registerEventType, registerEventType, set, setAccepted, spontaneous, toString, type
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QContextMenuEvent
- Parameters:
arg__1
-
-
QContextMenuEvent
- Parameters:
reason
-pos
-
-
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
Overloaded constructor for
QContextMenuEvent(io.qt.gui.QContextMenuEvent.Reason, io.qt.core.QPoint, io.qt.core.QPoint, io.qt.core.Qt.KeyboardModifiers)
withmodifiers = new io.qt.core.Qt.KeyboardModifiers(0)
. -
QContextMenuEvent
public QContextMenuEvent(QContextMenuEvent.Reason reason, QPoint pos, QPoint globalPos, Qt.KeyboardModifier ... modifiers)
-
-
Method Details
-
globalPos
- Returns:
-
globalX
- Returns:
-
globalY
- Returns:
-
assign
See
QContextMenuEvent::
operator=(QContextMenuEvent) - Parameters:
other
-
-
pos
- Returns:
-
reason
- Returns:
-
x
- Returns:
-
y
- Returns:
-
clone
- Overrides:
clone
in classQInputEvent
- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
set
Deprecated.Useassign(io.qt.gui.QContextMenuEvent)
instead.
-
assign(io.qt.gui.QContextMenuEvent)
instead.