blob: 2dfe9fb5aa6cc219b9ae886b2ecdeb8ec2b63337 (
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
73
74
75
76
77
78
|
// 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:
\table
\row
\li \c Qt.TouchPointUnknownState
\li Unknown state.
\row
\li \c Qt.TouchPointStationary
\li The event point did not move.
\row
\li \c Qt.TouchPointPressed
\li The touch point or button is pressed.
\row
\li \c Qt.TouchPointMoved
\li The event point was updated.
\row
\li \c Qt.TouchPointReleased
\li The touch point or button was released.
\endtable
The States type is a typedef for \l {QFlags} {QFlags<State>}. It stores an OR combination of
State values. See also \l QEventPoint::States
*/
QT_END_NAMESPACE
#include "moc_qquickforeignutils_p.cpp"
|