QWaylandTouch Class
La clase QWaylandTouch permite acceder a un dispositivo táctil. Más información...
| Encabezado: | #include <QWaylandTouch> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| Heredado de: | QWaylandObject |
Funciones públicas
| 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) |
Descripción detallada
Esta clase proporciona acceso al dispositivo táctil en un entorno « QWaylandSeat ». Se corresponde con la interfaz Wayland wl_touch.
Documentación de las funciones miembro
QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)
Crea un objeto `QWaylandTouch` para el ` seat ` y con el ` parent` indicado.
QWaylandCompositor *QWaylandTouch::compositor() const
Devuelve el compositor de este QWaylandTouch.
QWaylandSeat *QWaylandTouch::seat() const
Devuelve el dispositivo de entrada correspondiente a este ` QWaylandTouch`.
[virtual] void QWaylandTouch::sendCancelEvent(QWaylandClient *client)
Envía un evento de cancelación táctil al dispositivo táctil de un ` client`.
[virtual] void QWaylandTouch::sendFrameEvent(QWaylandClient *client)
Envía un evento de fotograma táctil al dispositivo táctil de un ` client`. Esto indica el final de una lista de puntos de contacto.
[virtual] void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)
Envía todos los puntos táctiles de event a la dirección especificada surface, seguidos de un evento de fotograma táctil.
Véase también sendTouchPointEvent() y sendFrameEvent().
[virtual] uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)
Envía un evento de punto táctil al dispositivo táctil de surface con los valores indicados para id, position y state.
Devuelve el número de serie del evento de pulsación o liberación, si se ha enviado; en caso contrario, devuelve 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.