java.lang.Object
io.qt.internal.NativeUtility.Object
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QMouseEvent
- All Implemented Interfaces:
QtObjectInterface
Contains parameters that describe a mouse event
Java wrapper for Qt's 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
ModifierConstructorDescriptionQMouseEvent
(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) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.MouseButton
button()
final Qt.MouseButtons
buttons()
protected final int
caps()
final Qt.MouseEventFlags
flags()
final QPoint
final int
globalX()
final int
globalY()
final QPointF
localPos()
final QPoint
pos()
final QPointF
protected final void
setButton
(Qt.MouseButton button) protected final void
setButtons
(Qt.MouseButton... buttons) Overloaded function forsetButtons(io.qt.core.Qt.MouseButtons)
.protected final void
setButtons
(Qt.MouseButtons buttons) protected final void
setCaps
(int caps) final void
setLocalPos
(QPointF localPosition) protected final void
setScreenPos
(QPointF screenPos) protected final void
setVelocity
(QVector2D velocity) protected final void
setWindowPos
(QPointF windowPos) final Qt.MouseEventSource
source()
toString()
protected final QVector2D
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, ignore, isAccepted, registerEventType, registerEventType, set, setAccepted, spontaneous, 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) -
QMouseEvent
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
button
-
buttons
-
flags
-
globalPos
-
globalX
-
globalY
-
localPos
-
pos
-
screenPos
-
setLocalPos
-
source
-
windowPos
-
x
-
y
-
setButton
-
setCaps
-
caps
-
setButtons
Overloaded function for
setButtons(io.qt.core.Qt.MouseButtons)
. -
setButtons
-
setScreenPos
-
setVelocity
-
velocity
-
setWindowPos
-
toString
- Overrides:
toString
in classQInputEvent
-