QWaylandTouch Class
QWaylandTouch クラスは、タッチデバイスへのアクセスを提供します。詳細...
| ヘッダー: | #include <QWaylandTouch> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| 継承元: | QWaylandObject |
パブリック関数
| QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr) | |
| QWaylandCompositor * | compositor() const |
| QWaylandSeat * | seat() const |
| virtual void | sendCancelEvent(QWaylandClient *client) |
| virtual void | sendFrameEvent(QWaylandClient *client) |
| virtual void | sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event) |
| virtual uint | sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state) |
詳細な説明
このクラスは、QWaylandSeat 内のタッチデバイスへのアクセスを提供します。これは、Waylandインターフェースのwl_touchに対応しています。
メンバ関数のドキュメント
QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)
seat に対して、指定されたparent を用いて QWaylandTouch を生成します。
QWaylandCompositor *QWaylandTouch::compositor() const
このQWaylandTouch に対応するコンポジターを返します。
QWaylandSeat *QWaylandTouch::seat() const
このQWaylandTouch に対応する入力デバイスを返します。
[virtual] void QWaylandTouch::sendCancelEvent(QWaylandClient *client)
client のタッチデバイスに対して、タッチキャンセルイベントを送信します。
[virtual] void QWaylandTouch::sendFrameEvent(QWaylandClient *client)
client のタッチデバイスにタッチフレームイベントを送信します。これは、コンタクトポイントリストの終了を示します。
[virtual] void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)
event 内のすべてのタッチポイントを、指定されたsurface に送信し、その後にタッチフレームイベントを送信します。
sendTouchPointEvent() およびsendFrameEvent()も参照してください 。
[virtual] uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)
指定されたid 、position 、およびstate を使用して、surface のタッチデバイスにタッチポイントイベントを送信します。
ダウンまたはアップイベントが送信された場合はそのシリアル番号を返し、そうでない場合は0を返します。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.