QWaylandTouch Class
The QWaylandTouch class provides access to a touch device. More...
Header: | #include <QWaylandTouch> |
qmake: | QT += waylandcompositor |
Inherits: | QWaylandObject |
This class is under development and is subject to change.
Public Functions
QWaylandTouch(QWaylandInputDevice *inputDevice, QObject *parent = nullptr) | |
QWaylandCompositor * | compositor() const |
wl_resource * | focusResource() const |
QWaylandInputDevice * | inputDevice() const |
QWaylandView * | mouseFocus() const |
virtual void | sendCancelEvent() |
virtual void | sendFrameEvent() |
virtual void | sendFullTouchEvent(QTouchEvent *event) |
virtual void | sendTouchPointEvent(int id, const QPointF &position, Qt::TouchPointState state) |
- 5 public functions inherited from QWaylandObject
Detailed Description
The QWaylandTouch class provides access to a touch device.
This class provides access to the touch device in a QWaylandInputDevice. It corresponds to the Wayland interface wl_touch.
Member Function Documentation
QWaylandTouch::QWaylandTouch(QWaylandInputDevice *inputDevice, QObject *parent = nullptr)
Constructs a QWaylandTouch for the inputDevice and with the given parent.
QWaylandCompositor *QWaylandTouch::compositor() const
Returns the compositor for this QWaylandTouch.
wl_resource *QWaylandTouch::focusResource() const
QWaylandInputDevice *QWaylandTouch::inputDevice() const
Returns the input device for this QWaylandTouch.
QWaylandView *QWaylandTouch::mouseFocus() const
Returns the view currently holding mouse focus in the input device.
[virtual]
void QWaylandTouch::sendCancelEvent()
Sends a touch cancel event for the touch device.
[virtual]
void QWaylandTouch::sendFrameEvent()
Sends a touch frame event for the touch device. This indicates the end of a contact point list.
[virtual]
void QWaylandTouch::sendFullTouchEvent(QTouchEvent *event)
Sends all the touch points in event for this touch device, followed by a touch frame event.
See also sendTouchPointEvent() and sendFrameEvent().
[virtual]
void QWaylandTouch::sendTouchPointEvent(int id, const QPointF &position, Qt::TouchPointState state)
Sends a touch point event for the touch device with the given id, position, and state.
See also mouseFocus().