- All Implemented Interfaces:
QtObjectInterface
- Direct Known Subclasses:
QSinglePointEvent
,QTouchEvent
A base class for pointer events
Java wrapper for Qt class QPointerEvent
- Since:
- This class was introduced in Qt 6.0.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.core.QEvent
QEvent.Type
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQPointerEvent
(QEvent.Type type, QPointingDevice dev) QPointerEvent
(QEvent.Type type, QPointingDevice dev, Qt.KeyboardModifiers modifiers) Overloaded constructor forQPointerEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)
withpoints = java.util.Collections.emptyList()
.QPointerEvent
(QEvent.Type type, QPointingDevice dev, Qt.KeyboardModifiers modifiers, Collection<? extends QEventPoint> points) SeeQPointerEvent::
QPointerEvent(QEvent::Type, const QPointingDevice*, Qt::KeyboardModifiers, QList<QEventPoint>) protected
QPointerEvent
(QPointerEvent arg__1) SeeQPointerEvent::
QPointerEvent(QPointerEvent) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
addPassiveGrabber
(QEventPoint point, QObject grabber) final boolean
final boolean
protected final void
assign
(QPointerEvent other) SeeQPointerEvent::
operator=(QPointerEvent) final void
clearPassiveGrabbers
(QEventPoint point) clone()
final QObject
exclusiveGrabber
(QEventPoint point) boolean
SeeQPointerEvent::
isBeginEvent()const boolean
SeeQPointerEvent::
isEndEvent()const boolean
SeeQPointerEvent::
isUpdateEvent()const passiveGrabbers
(QEventPoint point) final QEventPoint
point
(long i) final QEventPoint
pointById
(int id) final long
final QPointingDevice
final QList<QEventPoint>
points()
final boolean
removePassiveGrabber
(QEventPoint point, QObject grabber) protected final void
set
(QPointerEvent other) Deprecated.void
setAccepted
(boolean accepted) final void
setExclusiveGrabber
(QEventPoint point, QObject exclusiveGrabber) final void
setPoint
(long i, QEventPoint point) void
setTimestamp
(long timestamp) SeeQInputEvent::
setTimestamp(quint64) Methods inherited from class io.qt.gui.QInputEvent
assign, device, deviceType, modifiers, set, setDevice, setModifiers, setModifiers, timestamp
Methods inherited from class io.qt.core.QEvent
accept, assign, ignore, isAccepted, isInputEvent, isPointerEvent, isSinglePointEvent, registerEventType, registerEventType, set, spontaneous, toString, 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
-
QPointerEvent
public QPointerEvent(QEvent.Type type, QPointingDevice dev, Qt.KeyboardModifiers modifiers, Collection<? extends QEventPoint> points) See
QPointerEvent::
QPointerEvent(QEvent::Type, const QPointingDevice*, Qt::KeyboardModifiers, QList<QEventPoint>) - Parameters:
type
-dev
-modifiers
-points
-
-
QPointerEvent
See
QPointerEvent::
QPointerEvent(QPointerEvent) - Parameters:
arg__1
-
-
QPointerEvent
Overloaded constructor for
QPointerEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)
withpoints = java.util.Collections.emptyList()
. -
QPointerEvent
Overloaded constructor for
QPointerEvent(io.qt.core.QEvent.Type, io.qt.gui.QPointingDevice, io.qt.core.Qt.KeyboardModifiers, java.util.Collection)
with:
modifiers = new io.qt.core.Qt.KeyboardModifiers(0)
points = java.util.Collections.emptyList()
-
-
Method Details
-
addPassiveGrabber
- Parameters:
point
-grabber
-- Returns:
-
allPointsAccepted
- Returns:
-
allPointsGrabbed
- Returns:
-
clearPassiveGrabbers
- Parameters:
point
-
-
exclusiveGrabber
- Parameters:
point
-- Returns:
-
assign
See
QPointerEvent::
operator=(QPointerEvent) - Parameters:
other
-
-
passiveGrabbers
- Parameters:
point
-- Returns:
-
point
- Parameters:
i
-- Returns:
-
pointById
- Parameters:
id
-- Returns:
-
pointCount
- Returns:
-
pointerType
- Returns:
-
pointingDevice
- Returns:
-
points
- Returns:
-
removePassiveGrabber
- Parameters:
point
-grabber
-- Returns:
-
setExclusiveGrabber
- Parameters:
point
-exclusiveGrabber
-
-
clone
- Overrides:
clone
in classQInputEvent
- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
isBeginEvent
See
QPointerEvent::
isBeginEvent()const - Returns:
-
isEndEvent
See
QPointerEvent::
isEndEvent()const - Returns:
-
isUpdateEvent
See
QPointerEvent::
isUpdateEvent()const - Returns:
-
setAccepted
- Overrides:
setAccepted
in classQEvent
- Parameters:
accepted
-
-
setTimestamp
See
QInputEvent::
setTimestamp(quint64) - Overrides:
setTimestamp
in classQInputEvent
- Parameters:
timestamp
-
-
setPoint
-
set
Deprecated.Useassign(io.qt.gui.QPointerEvent)
instead.
-
assign(io.qt.gui.QPointerEvent)
instead.