- All Implemented Interfaces:
QtObjectInterface
public class QMouseEvent extends QSinglePointEvent
Contains parameters that describe a mouse event
Java wrapper for Qt class QMouseEvent
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description QMouseEvent
clone()
Qt.MouseEventFlags
flags()
QPoint
globalPos()
Deprecated.UseQSinglePointEvent.globalPosition()
insteadint
globalX()
Deprecated.UseQSinglePointEvent.globalPosition()
insteadint
globalY()
Deprecated.UseQSinglePointEvent.globalPosition()
insteadQPointF
localPos()
Deprecated.UseQSinglePointEvent.position()
insteadQPoint
pos()
QPointF
screenPos()
Deprecated.UseQSinglePointEvent.globalPosition()
insteadprotected void
set(QMouseEvent other)
Qt.MouseEventSource
source()
String
toString()
QPointF
windowPos()
Deprecated.UseQSinglePointEvent.scenePosition()
insteadint
x()
Deprecated.UseQSinglePointEvent.position()
insteadint
y()
Deprecated.UseQSinglePointEvent.position()
insteadMethods inherited from class io.qt.gui.QSinglePointEvent
button, buttons, doubleClick, exclusivePointGrabber, globalPosition, invertedScrolling, isBeginEvent, isEndEvent, isUpdateEvent, phaseFlag, position, scenePosition, set, setButton, setButtons, setButtons, setDoubleClick, setExclusivePointGrabber, setInvertedScrolling, setPhaseFlag, setSourceFlag, sourceFlag
Methods inherited from class io.qt.gui.QPointerEvent
addPassiveGrabber, allPointsAccepted, allPointsGrabbed, clearPassiveGrabbers, exclusiveGrabber, passiveGrabbers, point, pointById, pointCount, pointerType, pointingDevice, points, removePassiveGrabber, set, setAccepted, setExclusiveGrabber, setPoint, setTimestamp
Methods inherited from class io.qt.gui.QInputEvent
device, deviceType, modifiers, set, setDevice, setModifiers, setModifiers, timestamp
Methods inherited from class io.qt.core.QEvent
accept, ignore, isAccepted, isInputEvent, isPointerEvent, isSinglePointEvent, registerEventType, registerEventType, set, spontaneous, type
-
Constructor Details
-
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers)Overloaded constructor for
QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QPointingDevice)
withdevice = io.qt.gui.QPointingDevice.primaryPointingDevice()
. -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, QPointingDevice device) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers)Overloaded constructor for
QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QPointingDevice)
withdevice = io.qt.gui.QPointingDevice.primaryPointingDevice()
. -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, QPointingDevice device) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source)Overloaded constructor for
QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.MouseEventSource, io.qt.gui.QPointingDevice)
withdevice = io.qt.gui.QPointingDevice.primaryPointingDevice()
. -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source, QPointingDevice device) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers)Overloaded constructor for
QMouseEvent(io.qt.core.QEvent.Type, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.QPointF, io.qt.core.Qt.MouseButton, io.qt.core.Qt.MouseButtons, io.qt.core.Qt.KeyboardModifiers, io.qt.gui.QPointingDevice)
withdevice = io.qt.gui.QPointingDevice.primaryPointingDevice()
. -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, QPointingDevice device) -
QMouseEvent
-
QMouseEvent
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
flags
-
globalPos
Deprecated.UseQSinglePointEvent.globalPosition()
instead -
globalX
Deprecated.UseQSinglePointEvent.globalPosition()
instead -
globalY
Deprecated.UseQSinglePointEvent.globalPosition()
instead -
localPos
Deprecated.UseQSinglePointEvent.position()
instead -
set
-
pos
-
screenPos
Deprecated.UseQSinglePointEvent.globalPosition()
instead -
source
-
windowPos
Deprecated.UseQSinglePointEvent.scenePosition()
instead -
x
Deprecated.UseQSinglePointEvent.position()
instead -
y
Deprecated.UseQSinglePointEvent.position()
instead -
clone
- Overrides:
clone
in classQSinglePointEvent
-
toString
- Overrides:
toString
in classQSinglePointEvent
-