| 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 | |
| 6 | QT_BEGIN_NAMESPACE |
| 7 | |
| 8 | /*! |
| 9 | \qmltype eventPoint |
| 10 | \nativetype 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 \br |
| 23 | See also \l {QEventPoint::accepted}. |
| 24 | \li \l PointerDevice \c eventPoint.device \br |
| 25 | See also \l {QEventPoint::device}. |
| 26 | \li \l size \c eventPoint.ellipseDiameters \br |
| 27 | See also \l {QEventPoint::ellipseDiameters}. |
| 28 | \li \l point \c eventPoint.globalGrabPosition \br |
| 29 | See also \l {QEventPoint::globalGrabPosition}. |
| 30 | \li \l point \c eventPoint.globalLastPosition \br |
| 31 | See also \l {QEventPoint::globalLastPosition}. |
| 32 | \li \l point \c eventPoint.globalPosition \br |
| 33 | See also \l {QEventPoint::globalPosition}. |
| 34 | \li \l point \c eventPoint.globalPressPosition \br |
| 35 | See also \l {QEventPoint::globalPressPosition}. |
| 36 | \li \l bool \c eventPoint.grabPosition \br |
| 37 | See also \l {QEventPoint::grabPosition}. |
| 38 | \li \l int \c eventPoint.id \br |
| 39 | See also \l {QEventPoint::id}. |
| 40 | \li \l point \c eventPoint.lastPosition \br |
| 41 | See also \l {QEventPoint::lastPosition}. |
| 42 | \li \l ulong \c eventPoint.lastTimestamp \br |
| 43 | See also \l {QEventPoint::lastTimestamp}. |
| 44 | \li \l point \c eventPoint.position \br |
| 45 | See also \l {QEventPoint::position}. |
| 46 | \li \l point \c eventPoint.pressPosition \br |
| 47 | See also \l {QEventPoint::pressPosition}. |
| 48 | \li \l int \c eventPoint.pressTimestamp \br |
| 49 | See also \l {QEventPoint::pressTimestamp}. |
| 50 | \li \l real \c eventPoint.pressure \br |
| 51 | See also \l {QEventPoint::pressure}. |
| 52 | \li \l real \c eventPoint.rotation \br |
| 53 | See also \l {QEventPoint::rotation}. |
| 54 | \li \l point \c eventPoint.sceneGrabPosition \br |
| 55 | See also \l {QEventPoint::sceneGrabPosition}. |
| 56 | \li \l point \c eventPoint.sceneLastPosition \br |
| 57 | See also \l {QEventPoint::sceneLastPosition}. |
| 58 | \li \l point \c eventPoint.scenePosition \br |
| 59 | See also \l {QEventPoint::scenePosition}. |
| 60 | \li \l ulong \c eventPoint.pressTimestamp \br |
| 61 | See also \l {QEventPoint::pressTimestamp}. |
| 62 | \li \l point \c eventPoint.scenePressPosition \br |
| 63 | See also \l {QEventPoint::scenePressPosition}. |
| 64 | \li \l {QML Enumerations}{enumeration} \c eventPoint.state \br |
| 65 | See also \l {QEventPoint::state}. |
| 66 | \li \l real \c eventPoint.timeHeld \br |
| 67 | See also \l {QEventPoint::timeHeld}. |
| 68 | \li \l ulong \c eventPoint.timestamp \br |
| 69 | See also \l {QEventPoint::timestamp}. |
| 70 | \li \l pointingDeviceUniqueId \c eventPoint.uniqueId \br |
| 71 | See also \l {QEventPoint::uniqueId}. |
| 72 | \li \l vector2d \c eventPoint.velocity \br |
| 73 | See also \l {QEventPoint::velocity}. |
| 74 | \endlist |
| 75 | |
| 76 | |
| 77 | State supports the following values: |
| 78 | |
| 79 | \value EventPoint.Unknown |
| 80 | Unknown state; same as Qt.TouchPointUnknownState |
| 81 | \value EventPoint.Stationary |
| 82 | The event point did not move; same as Qt.TouchPointStationary |
| 83 | \value EventPoint.Pressed |
| 84 | The touch point or button is pressed; same as Qt.TouchPointPressed |
| 85 | \value EventPoint.Updated |
| 86 | The event point was updated; same as Qt.TouchPointMoved |
| 87 | \value EventPoint.Released |
| 88 | The touch point or button was released; same as Qt.TouchPointReleased |
| 89 | |
| 90 | The States type is a typedef for \l {QFlags} {QFlags<State>}. It stores an OR combination of |
| 91 | State values. See also \l QEventPoint::States |
| 92 | |
| 93 | \snippet pointerHandlers/tapHandlerGrabChanged.qml 0 |
| 94 | */ |
| 95 | |
| 96 | QT_END_NAMESPACE |
| 97 | |
| 98 | #include "moc_qquickforeignutils_p.cpp" |
| 99 | |