java.lang.Object
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QMouseEvent
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Contains parameters that describe a mouse event
Java wrapper for Qt class QMouseEvent
-
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
ConstructorDescriptionQMouseEvent
(QEvent.Type type, QPointF localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPointF localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.MouseButton
button()
final Qt.MouseButtons
buttons()
protected final int
caps()
SeeQMouseEvent::
caps clone()
Creates and returns a copy of this object.final Qt.MouseEventFlags
flags()
protected final int
getCaps()
Kotlin property getter.protected final QVector2D
Kotlin property getter.final QPoint
final int
globalX()
final int
globalY()
final QPointF
localPos()
final QPoint
pos()
final QPointF
protected final void
setButton
(Qt.MouseButton button) SeeQMouseEvent::
b protected final void
setButtons
(Qt.MouseButton ... buttons) Overloaded function forsetButtons(io.qt.core.Qt.MouseButtons)
.protected final void
setButtons
(Qt.MouseButtons buttons) SeeQMouseEvent::
mouseState protected final void
setCaps
(int caps) SeeQMouseEvent::
caps final void
setLocalPos
(QPointF localPosition) SeeQMouseEvent::
setLocalPos(QPointF) protected final void
setScreenPos
(QPointF screenPos) SeeQMouseEvent::
s protected final void
setVelocity
(QVector2D velocity) SeeQMouseEvent::
velocity protected final void
setWindowPos
(QPointF windowPos) SeeQMouseEvent::
w final Qt.MouseEventSource
source()
protected final QVector2D
velocity()
SeeQMouseEvent::
velocity final QPointF
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
-
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source)
-
-
Method Details
-
button
-
buttons
-
flags
-
globalPos
-
globalX
-
globalY
-
localPos
-
pos
-
screenPos
-
setLocalPos
See
QMouseEvent::
setLocalPos(QPointF) -
source
-
windowPos
-
x
-
y
-
setButton
See
QMouseEvent::
b -
setCaps
See
QMouseEvent::
caps -
getCaps
Kotlin property getter. In Java use
caps()
instead. -
caps
See
QMouseEvent::
caps -
setButtons
Overloaded function for
setButtons(io.qt.core.Qt.MouseButtons)
. -
setButtons
See
QMouseEvent::
mouseState -
setScreenPos
See
QMouseEvent::
s -
setVelocity
See
QMouseEvent::
velocity -
getVelocity
Kotlin property getter. In Java use
velocity()
instead. -
velocity
See
QMouseEvent::
velocity -
setWindowPos
See
QMouseEvent::
w -
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQInputEvent
-