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
-
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 windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPointF windowPos, QPoint 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, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPointF localPos, QPoint 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) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) QMouseEvent
(QEvent.Type type, QPoint localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) QMouseEvent
(QMouseEvent other) SeeQMouseEvent::
QMouseEvent(QMouseEvent) -
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()
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
(QPoint localPosition) Overloaded function forsetLocalPos(io.qt.core.QPointF)
.final void
setLocalPos
(QPointF localPosition) SeeQMouseEvent::
setLocalPos(QPointF) protected final void
setScreenPos
(QPoint screenPos) Overloaded function forsetScreenPos(io.qt.core.QPointF)
.protected final void
setScreenPos
(QPointF screenPos) SeeQMouseEvent::
s protected final void
setVelocity
(QVector2D velocity) SeeQMouseEvent::
velocity protected final void
setWindowPos
(QPoint windowPos) Overloaded function forsetWindowPos(io.qt.core.QPointF)
.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, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) - Parameters:
type
-localPos
-windowPos
-screenPos
-button
-buttons
-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) - Parameters:
type
-localPos
-windowPos
-screenPos
-button
-buttons
-modifiers
-source
-- Since:
- This function was introduced in Qt 5.6.
-
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) - Parameters:
type
-localPos
-screenPos
-button
-buttons
-modifiers
-
-
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) - Parameters:
type
-localPos
-button
-buttons
-modifiers
-
-
QMouseEvent
See
QMouseEvent::
QMouseEvent(QMouseEvent) - Parameters:
other
-
-
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint windowPos, QPoint 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, QPoint localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPointF windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint windowPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPointF windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint windowPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint screenPos, 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, QPoint localPos, QPointF screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, QPoint screenPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPointF localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers) -
QMouseEvent
public QMouseEvent(QEvent.Type type, QPoint localPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifier ... modifiers)
-
-
Method Details
-
button
- Returns:
-
buttons
- Returns:
-
flags
- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
globalPos
- Returns:
-
globalX
- Returns:
-
globalY
- Returns:
-
localPos
- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
pos
- Returns:
-
screenPos
- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
setLocalPos
See
QMouseEvent::
setLocalPos(QPointF) - Parameters:
localPosition
-
-
source
- Returns:
- Since:
- This function was introduced in Qt 5.3.
-
windowPos
- Returns:
- Since:
- This function was introduced in Qt 5.0.
-
x
- Returns:
-
y
- Returns:
-
setButton
See
QMouseEvent::
b - Parameters:
button
-
-
setCaps
See
QMouseEvent::
caps - Parameters:
caps
-
-
caps
See
QMouseEvent::
caps - Returns:
-
setButtons
See
QMouseEvent::
mouseState - Parameters:
buttons
-
-
setScreenPos
See
QMouseEvent::
s - Parameters:
screenPos
-
-
setVelocity
See
QMouseEvent::
velocity - Parameters:
velocity
-
-
velocity
See
QMouseEvent::
velocity - Returns:
-
setWindowPos
See
QMouseEvent::
w - Parameters:
windowPos
-
-
clone
Creates and returns a copy of this object.
See
QMouseEvent::
QMouseEvent(QMouseEvent) - Overrides:
clone
in classQInputEvent
-
setLocalPos
Overloaded function for
setLocalPos(io.qt.core.QPointF)
. -
setButtons
Overloaded function for
setButtons(io.qt.core.Qt.MouseButtons)
. -
setScreenPos
Overloaded function for
setScreenPos(io.qt.core.QPointF)
. -
setWindowPos
Overloaded function for
setWindowPos(io.qt.core.QPointF)
.
-