diff options
Diffstat (limited to 'src/quick/util/qquickforeignutils.cpp')
-rw-r--r-- | src/quick/util/qquickforeignutils.cpp | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/src/quick/util/qquickforeignutils.cpp b/src/quick/util/qquickforeignutils.cpp new file mode 100644 index 0000000000..242d961cdc --- /dev/null +++ b/src/quick/util/qquickforeignutils.cpp @@ -0,0 +1,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" |