- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Contains parameters that describe a touch event
Java wrapper for Qt class QTouchEvent
- Since:
- This class was introduced in Qt 4.6.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Information about a touch point in a QTouchEventNested classes/interfaces inherited from class io.qt.core.QEvent
QEvent.Type
-
Field Summary
Fields inherited from class io.qt.core.QEvent
staticMetaObject
-
Constructor Summary
ConstructorDescriptionQTouchEvent
(QEvent.Type eventType) QTouchEvent
(QEvent.Type eventType, QTouchDevice device) QTouchEvent
(QEvent.Type eventType, QTouchDevice device, Qt.KeyboardModifiers modifiers) QTouchEvent
(QEvent.Type eventType, QTouchDevice device, Qt.KeyboardModifiers modifiers, Qt.TouchPointStates touchPointStates) Overloaded constructor forQTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QTouchDevice, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.TouchPointStates, java.util.Collection)
withtouchPoints = java.util.Collections.emptyList()
.QTouchEvent
(QEvent.Type eventType, QTouchDevice device, Qt.KeyboardModifiers modifiers, Qt.TouchPointStates touchPointStates, Collection<? extends QTouchEvent.TouchPoint> touchPoints) QTouchEvent
(QTouchEvent other) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final QTouchDevice
device()
final void
setDevice
(QTouchDevice adevice) SeeQTouchEvent::
setDevice(QTouchDevice*) final void
SeeQTouchEvent::
setTarget(QObject*) final void
setTouchPoints
(Collection<? extends QTouchEvent.TouchPoint> atouchPoints) SeeQTouchEvent::
setTouchPoints(QList<QTouchEvent::TouchPoint>) final void
setTouchPointStates
(Qt.TouchPointState ... aTouchPointStates) Overloaded function forsetTouchPointStates(io.qt.core.Qt.TouchPointStates)
.final void
setTouchPointStates
(Qt.TouchPointStates aTouchPointStates) SeeQTouchEvent::
setTouchPointStates(Qt::TouchPointStates) final void
SeeQTouchEvent::
setWindow(QWindow*) final QObject
target()
final QList<QTouchEvent.TouchPoint>
final Qt.TouchPointStates
final QWindow
window()
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
-
QTouchEvent
public QTouchEvent(QEvent.Type eventType, QTouchDevice device, Qt.KeyboardModifiers modifiers, Qt.TouchPointStates touchPointStates, Collection<? extends QTouchEvent.TouchPoint> touchPoints) - Parameters:
eventType
-device
-modifiers
-touchPointStates
-touchPoints
-
-
QTouchEvent
- Parameters:
other
-
-
QTouchEvent
public QTouchEvent(QEvent.Type eventType, QTouchDevice device, Qt.KeyboardModifiers modifiers, Qt.TouchPointStates touchPointStates) Overloaded constructor for
QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QTouchDevice, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.TouchPointStates, java.util.Collection)
withtouchPoints = java.util.Collections.emptyList()
. -
QTouchEvent
Overloaded constructor for
QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QTouchDevice, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.TouchPointStates, java.util.Collection)
with:
touchPointStates = new io.qt.core.Qt.TouchPointStates(0)
touchPoints = java.util.Collections.emptyList()
-
QTouchEvent
Overloaded constructor for
QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QTouchDevice, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.TouchPointStates, java.util.Collection)
with:
modifiers = new io.qt.core.Qt.KeyboardModifiers(0)
touchPointStates = new io.qt.core.Qt.TouchPointStates(0)
touchPoints = java.util.Collections.emptyList()
-
QTouchEvent
Overloaded constructor for
QTouchEvent(io.qt.core.QEvent.Type, io.qt.gui.QTouchDevice, io.qt.core.Qt.KeyboardModifiers, io.qt.core.Qt.TouchPointStates, java.util.Collection)
with:
device = null
modifiers = new io.qt.core.Qt.KeyboardModifiers(0)
touchPointStates = new io.qt.core.Qt.TouchPointStates(0)
touchPoints = java.util.Collections.emptyList()
-
-
Method Details
-
device
- Returns:
-
setDevice
See
QTouchEvent::
setDevice(QTouchDevice*) - Parameters:
adevice
-
-
setTarget
See
QTouchEvent::
setTarget(QObject*) - Parameters:
atarget
-
-
setTouchPointStates
See
QTouchEvent::
setTouchPointStates(Qt::TouchPointStates) - Parameters:
aTouchPointStates
-
-
setTouchPoints
@QtUninvokable public final void setTouchPoints(Collection<? extends QTouchEvent.TouchPoint> atouchPoints) See
QTouchEvent::
setTouchPoints(QList<QTouchEvent::TouchPoint>) - Parameters:
atouchPoints
-
-
setWindow
See
QTouchEvent::
setWindow(QWindow*) - Parameters:
awindow
-
-
target
- Returns:
-
touchPointStates
- Returns:
-
touchPoints
- Returns:
-
window
- Returns:
-
clone
Creates and returns a copy of this object.
- Overrides:
clone
in classQInputEvent
-
setTouchPointStates
Overloaded function for
setTouchPointStates(io.qt.core.Qt.TouchPointStates)
.
-