eventPoint QML Type
QEventPoint に相当する Qml 。もっと見る...
Import Statement: | import QtQuick |
In C++: | QEventPoint |
詳細説明
eventPoint はQEventPoint の Qml 値型表現です。QEventPoint と同じプロパティを持ちます。
以下のプロパティがあります:
- bool
eventPoint.accepted
参照QEventPoint::accepted - PointerDevice
eventPoint.device
参照QEventPoint::device - size
eventPoint.ellipseDiameters
参照QEventPoint::ellipseDiameters - point
eventPoint.globalGrabPosition
参照QEventPoint::globalGrabPosition - point
eventPoint.globalLastPosition
参照QEventPoint::globalLastPosition - point
eventPoint.globalPosition
: see alsoQEventPoint::globalPosition - point
eventPoint.globalPressPosition
: see alsoQEventPoint::globalPressPosition - bool
eventPoint.grabPosition
: see alsoQEventPoint::grabPosition - int
eventPoint.id
: see alsoQEventPoint::id - point
eventPoint.lastPosition
: see alsoQEventPoint::lastPosition - ulong
eventPoint.lastTimestamp
: see alsoQEventPoint::lastTimestamp - point
eventPoint.position
: see alsoQEventPoint::position - point
eventPoint.pressPosition
: see alsoQEventPoint::pressPosition - int
eventPoint.pressTimestamp
: see alsoQEventPoint::pressTimestamp - real
eventPoint.pressure
: see alsoQEventPoint::pressure - real
eventPoint.rotation
: see alsoQEventPoint::rotation - point
eventPoint.sceneGrabPosition
: see alsoQEventPoint::sceneGrabPosition - point
eventPoint.sceneLastPosition
: see alsoQEventPoint::sceneLastPosition - point
eventPoint.scenePosition
: see alsoQEventPoint::scenePosition - ulong
eventPoint.pressTimestamp
: see alsoQEventPoint::pressTimestamp - point
eventPoint.scenePressPosition
: see alsoQEventPoint::scenePressPosition - enumeration
eventPoint.state
: see alsoQEventPoint::state - real
eventPoint.timeHeld
: see alsoQEventPoint::timeHeld - ulong
eventPoint.timestamp
: see alsoQEventPoint::timestamp - pointingDeviceUniqueId
eventPoint.uniqueId
: see alsoQEventPoint::uniqueId - vector2d
eventPoint.velocity
参照QEventPoint::velocity
State は以下の値をサポートします:
定数 | 説明 |
---|---|
EventPoint.Unknown | Qt.TouchPointUnknownState と同じです。 |
EventPoint.Stationary | Qt.TouchPointStationary と同じです。 |
EventPoint.Pressed | Qt.TouchPointPressed と同じです。 |
EventPoint.Updated | イベント ポイントが更新された。 |
EventPoint.Released | Qt.TouchPointReleased と同じ。 |
States 型はQFlags<State> の型定義です。これは、State 値の OR の組み合わせを格納します。以下も参照してください。QEventPoint::States
TapHandler { gesturePolicy: TapHandler.ReleaseWithinBounds // exclusive grab on press onGrabChanged: (transition, eventPoint) => { switch (transition) { case PointerDevice.GrabExclusive: console.log("took exclusive grab of point", eventPoint.id, "on", eventPoint.device.name) break case PointerDevice.UngrabExclusive: console.log("gave up exclusive grab of point", eventPoint.id, "on", eventPoint.device.name) break case PointerDevice.CancelGrabExclusive: console.log("exclusive grab of point", eventPoint.id, "on", eventPoint.device.name, "has been cancelled") break } switch (eventPoint.state) { case EventPoint.Pressed: console.log("on press @", eventPoint.position); break case EventPoint.Updated: console.log("on update @", eventPoint.position); break case EventPoint.Released: console.log("on release @", eventPoint.position); break default: console.log(eventPoint.position, "state", eventPoint.state) break } } }
handlerPointも参照して ください。
本ドキュメントに含まれる文書の著作権は、それぞれの所有者に帰属します。 本書で提供されるドキュメントは、Free Software Foundation が発行したGNU Free Documentation License version 1.3に基づいてライセンスされています。 Qtおよびそれぞれのロゴは、フィンランドおよびその他の国におけるThe Qt Company Ltd.の 商標です。その他すべての商標は、それぞれの所有者に帰属します。