java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.core.QEvent
io.qt.gui.QInputEvent
io.qt.gui.QPointerEvent
io.qt.gui.QSinglePointEvent
- All Implemented Interfaces:
QtObjectInterface
- Direct Known Subclasses:
QEnterEvent
,QHoverEvent
,QMouseEvent
,QNativeGestureEvent
,QTabletEvent
,QWheelEvent
public class QSinglePointEvent extends QPointerEvent
A base class for pointer events containing a single point, such as mouse events
Java wrapper for Qt class QSinglePointEvent
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
-
Method Summary
Modifier and Type Method Description Qt.MouseButton
button()
Qt.MouseButtons
buttons()
QSinglePointEvent
clone()
protected boolean
doubleClick()
QObject
exclusivePointGrabber()
QPointF
globalPosition()
protected boolean
invertedScrolling()
boolean
isBeginEvent()
boolean
isEndEvent()
boolean
isUpdateEvent()
protected short
phaseFlag()
QPointF
position()
QPointF
scenePosition()
protected void
set(QSinglePointEvent other)
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
setDoubleClick(boolean doubleClick)
void
setExclusivePointGrabber(QObject exclusiveGrabber)
protected void
setInvertedScrolling(boolean invertedScrolling)
protected void
setPhaseFlag(short phaseFlag)
protected void
setSourceFlag(Qt.MouseEventSource sourceFlag)
protected Qt.MouseEventSource
sourceFlag()
String
toString()
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
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QSinglePointEvent
protected QSinglePointEvent(QEvent.Type type, QPointingDevice dev, QEventPoint point, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QSinglePointEvent
protected QSinglePointEvent(QEvent.Type type, QPointingDevice dev, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers)Overloaded constructor for
QSinglePointEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, 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)
withsource = io.qt.core.Qt.MouseEventSource.MouseEventNotSynthesized
. -
QSinglePointEvent
protected QSinglePointEvent(QEvent.Type type, QPointingDevice dev, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) -
QSinglePointEvent
-
QSinglePointEvent
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
button
-
buttons
-
exclusivePointGrabber
-
globalPosition
-
set
-
position
-
scenePosition
-
setExclusivePointGrabber
-
clone
- Overrides:
clone
in classQPointerEvent
-
isBeginEvent
- Overrides:
isBeginEvent
in classQPointerEvent
-
isEndEvent
- Overrides:
isEndEvent
in classQPointerEvent
-
isUpdateEvent
- Overrides:
isUpdateEvent
in classQPointerEvent
-
setButton
-
setDoubleClick
-
doubleClick
-
setInvertedScrolling
-
invertedScrolling
-
setButtons
Overloaded function for
setButtons(io.qt.core.Qt.MouseButtons)
. -
setButtons
-
setPhaseFlag
-
phaseFlag
-
setSourceFlag
-
sourceFlag
-
toString
- Overrides:
toString
in classQPointerEvent
-