blob: 242d961cdcdf1bd01a00bee537b609682970daa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include "qquickforeignutils_p.h"
QT_BEGIN_NAMESPACE
/*!
\qmltype eventPoint
\instantiates QEventPoint
\inqmlmodule QtQuick
\brief Qml equivalent for \l QEventPoint.
\sa handlerPoint
eventPoint is the Qml value type representation
of \l QEventPoint.
It has the same properties as \l QEventPoint.
The following properties are available:
\list
\li \l bool \c eventPoint.accepted: see also \l QEventPoint::accepted
\li \l PointerDevice \c eventPoint.device: see also \l QEventPoint::device
\li \l size \c eventPoint.ellipseDiameters: see also \l QEventPoint::ellipseDiameters
\li \l point \c eventPoint.globalGrabPosition: see also \l QEventPoint::globalGrabPosition
\li \l point \c eventPoint.globalLastPosition: see also \l QEventPoint::globalLastPosition
\li \l point \c eventPoint.globalPosition: see also \l QEventPoint::globalPosition
\li \l point \c eventPoint.globalPressPosition: see also \l QEventPoint::globalPressPosition
\li \l bool \c eventPoint.grabPosition: see also \l QEventPoint::grabPosition
\li \l int \c eventPoint.id: see also \l QEventPoint::id
\li \l point \c eventPoint.lastPosition: see also \l QEventPoint::lastPosition
\li \l ulong \c eventPoint.lastTimestamp: see also \l QEventPoint::lastTimestamp
\li \l point \c eventPoint.position: see also \l QEventPoint::position
\li \l point \c eventPoint.pressPosition: see also \l QEventPoint::pressPosition
\li \l int \c eventPoint.pressTimestamp: see also \l QEventPoint::pressTimestamp
\li \l real \c eventPoint.pressure: see also \l QEventPoint::pressure
\li \l real \c eventPoint.rotation: see also \l QEventPoint::rotation
\li \l point \c eventPoint.sceneGrabPosition: see also \l QEventPoint::sceneGrabPosition
\li \l point \c eventPoint.sceneLastPosition: see also \l QEventPoint::sceneLastPosition
\li \l point \c eventPoint.scenePosition: see also \l QEventPoint::scenePosition
\li \l ulong \c eventPoint.pressTimestamp: see also \l QEventPoint::pressTimestamp
\li \l point \c eventPoint.scenePressPosition: see also \l QEventPoint::scenePressPosition
\li \l enumeration \c eventPoint.state: see also \l QEventPoint::state
\li \l real \c eventPoint.timeHeld: see also \l QEventPoint::timeHeld
\li \l ulong \c eventPoint.timestamp: see also \l QEventPoint::timestamp
\li \l pointingDeviceUniqueId \c eventPoint.uniqueId: see also \l QEventPoint::uniqueId
\li \l vector2d \c eventPoint.velocity: see also \l QEventPoint::velocity
\endlist
State supports the following values:
\value EventPoint.Unknown
Unknown state; same as Qt.TouchPointUnknownState
\value EventPoint.Stationary
The event point did not move; same as Qt.TouchPointStationary
\value EventPoint.Pressed
The touch point or button is pressed; same as Qt.TouchPointPressed
\value EventPoint.Updated
The event point was updated; same as Qt.TouchPointMoved
\value EventPoint.Released
The touch point or button was released; same as Qt.TouchPointReleased
The States type is a typedef for \l {QFlags} {QFlags<State>}. It stores an OR combination of
State values. See also \l QEventPoint::States
\snippet pointerHandlers/tapHandlerGrabChanged.qml 0
*/
QT_END_NAMESPACE
#include "moc_qquickforeignutils_p.cpp"
|