java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QMouseEvent
- All Implemented Interfaces:
QtObjectInterface
public class QMouseEvent extends QInputEvent
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 Qt.MouseButton
button()
Qt.MouseButtons
buttons()
protected int
caps()
Qt.MouseEventFlags
flags()
QPoint
globalPos()
int
globalX()
int
globalY()
QPointF
localPos()
QPoint
pos()
QPointF
screenPos()
protected void
setButton(Qt.MouseButton button)
protected void
setButtons(Qt.MouseButton... buttons)
Overloaded function forsetButtons(io.qt.core.Qt.MouseButtons)
.protected void
setButtons(Qt.MouseButtons buttons)
protected void
setCaps(int caps)
void
setLocalPos(QPointF localPosition)
protected void
setScreenPos(QPointF screenPos)
protected void
setVelocity(QVector2D velocity)
protected void
setWindowPos(QPointF windowPos)
Qt.MouseEventSource
source()
String
toString()
protected QVector2D
velocity()
QPointF
windowPos()
int
x()
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
-
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
-