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 の QWaylandTouch を、与えられたparent で構築します。
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 のタッチデバイスにタッチポイントイベントを送信する。
送信された場合はdownまたはupイベントのシリアルを返し、そうでない場合は0を返します。
© 2025 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.