Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickforeignutils.cpp
Go to the documentation of this file.
1
// Copyright (C) 2022 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qquickforeignutils_p.h"
6
7
QT_BEGIN_NAMESPACE
8
9
/*!
10
\qmltype eventPoint
11
\nativetype QEventPoint
12
\inqmlmodule QtQuick
13
\brief Qml equivalent for \l QEventPoint.
14
\sa handlerPoint
15
16
eventPoint is the Qml value type representation
17
of \l QEventPoint.
18
It has the same properties as \l QEventPoint.
19
20
The following properties are available:
21
22
\list
23
\li \l bool \c eventPoint.accepted \br
24
See also \l {QEventPoint::accepted}.
25
\li \l PointerDevice \c eventPoint.device \br
26
See also \l {QEventPoint::device}.
27
\li \l size \c eventPoint.ellipseDiameters \br
28
See also \l {QEventPoint::ellipseDiameters}.
29
\li \l point \c eventPoint.globalGrabPosition \br
30
See also \l {QEventPoint::globalGrabPosition}.
31
\li \l point \c eventPoint.globalLastPosition \br
32
See also \l {QEventPoint::globalLastPosition}.
33
\li \l point \c eventPoint.globalPosition \br
34
See also \l {QEventPoint::globalPosition}.
35
\li \l point \c eventPoint.globalPressPosition \br
36
See also \l {QEventPoint::globalPressPosition}.
37
\li \l bool \c eventPoint.grabPosition \br
38
See also \l {QEventPoint::grabPosition}.
39
\li \l int \c eventPoint.id \br
40
See also \l {QEventPoint::id}.
41
\li \l point \c eventPoint.lastPosition \br
42
See also \l {QEventPoint::lastPosition}.
43
\li \l ulong \c eventPoint.lastTimestamp \br
44
See also \l {QEventPoint::lastTimestamp}.
45
\li \l point \c eventPoint.position \br
46
See also \l {QEventPoint::position}.
47
\li \l point \c eventPoint.pressPosition \br
48
See also \l {QEventPoint::pressPosition}.
49
\li \l int \c eventPoint.pressTimestamp \br
50
See also \l {QEventPoint::pressTimestamp}.
51
\li \l real \c eventPoint.pressure \br
52
See also \l {QEventPoint::pressure}.
53
\li \l real \c eventPoint.rotation \br
54
See also \l {QEventPoint::rotation}.
55
\li \l point \c eventPoint.sceneGrabPosition \br
56
See also \l {QEventPoint::sceneGrabPosition}.
57
\li \l point \c eventPoint.sceneLastPosition \br
58
See also \l {QEventPoint::sceneLastPosition}.
59
\li \l point \c eventPoint.scenePosition \br
60
See also \l {QEventPoint::scenePosition}.
61
\li \l ulong \c eventPoint.pressTimestamp \br
62
See also \l {QEventPoint::pressTimestamp}.
63
\li \l point \c eventPoint.scenePressPosition \br
64
See also \l {QEventPoint::scenePressPosition}.
65
\li \l {QML Enumerations}{enumeration} \c eventPoint.state \br
66
See also \l {QEventPoint::state}.
67
\li \l real \c eventPoint.timeHeld \br
68
See also \l {QEventPoint::timeHeld}.
69
\li \l ulong \c eventPoint.timestamp \br
70
See also \l {QEventPoint::timestamp}.
71
\li \l pointingDeviceUniqueId \c eventPoint.uniqueId \br
72
See also \l {QEventPoint::uniqueId}.
73
\li \l vector2d \c eventPoint.velocity \br
74
See also \l {QEventPoint::velocity}.
75
\endlist
76
77
78
State supports the following values:
79
80
\value EventPoint.Unknown
81
Unknown state; same as Qt.TouchPointUnknownState
82
\value EventPoint.Stationary
83
The event point did not move; same as Qt.TouchPointStationary
84
\value EventPoint.Pressed
85
The touch point or button is pressed; same as Qt.TouchPointPressed
86
\value EventPoint.Updated
87
The event point was updated; same as Qt.TouchPointMoved
88
\value EventPoint.Released
89
The touch point or button was released; same as Qt.TouchPointReleased
90
91
The States type is a typedef for \l {QFlags} {QFlags<State>}. It stores an OR combination of
92
State values. See also \l QEventPoint::States
93
94
\snippet pointerHandlers/tapHandlerGrabChanged.qml 0
95
*/
96
97
QT_END_NAMESPACE
98
99
#
include
"moc_qquickforeignutils_p.cpp"
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
quick
util
qquickforeignutils.cpp
Generated on
for Qt by
1.14.0