- All Implemented Interfaces:
QtObjectInterface
public class QTouchEvent extends QInputEvent
Contains parameters that describe a touch event
Java wrapper for Qt class QTouchEvent
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTouchEvent.TouchPoint
Information about a touch point in a QTouchEvent -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description QTouchEvent(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<QTouchEvent.TouchPoint> touchPoints)
protected
QTouchEvent(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QTouchDevice
device()
void
setDevice(QTouchDevice adevice)
void
setTarget(QObject atarget)
void
setTouchPoints(Collection<QTouchEvent.TouchPoint> atouchPoints)
void
setTouchPointStates(Qt.TouchPointState... aTouchPointStates)
Overloaded function forsetTouchPointStates(io.qt.core.Qt.TouchPointStates)
.void
setTouchPointStates(Qt.TouchPointStates aTouchPointStates)
void
setWindow(QWindow awindow)
QObject
target()
String
toString()
QList<QTouchEvent.TouchPoint>
touchPoints()
Qt.TouchPointStates
touchPointStates()
QWindow
window()
Methods inherited from class io.qt.gui.QInputEvent
modifiers, setModifiers, setModifiers, setTimestamp, timestamp
Methods inherited from class io.qt.core.QEvent
accept, ignore, isAccepted, registerEventType, registerEventType, set, setAccepted, spontaneous, type
-
Constructor Details
-
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()
-
QTouchEvent
public QTouchEvent(QEvent.Type eventType, QTouchDevice device, Qt.KeyboardModifiers modifiers, Qt.TouchPointStates touchPointStates, Collection<QTouchEvent.TouchPoint> touchPoints) -
QTouchEvent
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
device
-
setDevice
-
setTarget
-
setTouchPointStates
Overloaded function for
setTouchPointStates(io.qt.core.Qt.TouchPointStates)
. -
setTouchPointStates
-
setTouchPoints
-
setWindow
-
target
-
touchPointStates
-
touchPoints
-
window
-
toString
- Overrides:
toString
in classQInputEvent
-