java.lang.Object
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
A base class for pointer events containing a single point, such as mouse events
Java wrapper for Qt's class QSinglePointEvent
-
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
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionprotected
QSinglePointEvent
(QEvent.Type type, QPointingDevice dev, QPointF localPos, QPointF scenePos, QPointF globalPos, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers) Overloaded constructor forQSinglePointEvent(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
.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) protected
QSinglePointEvent
(QEvent.Type type, QPointingDevice dev, QEventPoint point, Qt.MouseButton button, Qt.MouseButtons buttons, Qt.KeyboardModifiers modifiers, Qt.MouseEventSource source) protected
QSinglePointEvent
(QSinglePointEvent arg__1) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal Qt.MouseButton
button()
final Qt.MouseButtons
buttons()
clone()
protected final boolean
final QObject
final QPointF
protected final boolean
boolean
boolean
boolean
protected final short
final QPointF
position()
final QPointF
protected final void
set
(QSinglePointEvent other) 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
setDoubleClick
(boolean doubleClick) final void
setExclusivePointGrabber
(QObject exclusiveGrabber) protected final void
setInvertedScrolling
(boolean invertedScrolling) protected final void
setPhaseFlag
(short phaseFlag) protected final void
setSourceFlag
(Qt.MouseEventSource sourceFlag) protected final Qt.MouseEventSource
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
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
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
-