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 에서 터치 장치에 대한 액세스를 제공합니다. 이는 웨이랜드 인터페이스 wl_touch에 해당합니다.

멤버 함수 문서

QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)

주어진 parent 을 사용하여 seat 에 대한 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을 반환합니다.

© 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.