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

source code of qtdeclarative/src/quick/util/qquickforeignutils.cpp