|qmake:||QT += waylandcompositor|
This class is under development and is subject to change.
|QWaylandTouch(QWaylandInputDevice *inputDevice, QObject *parent = nullptr)|
|QWaylandCompositor *||compositor() const|
|wl_resource *||focusResource() const|
|QWaylandInputDevice *||inputDevice() const|
|QWaylandView *||mouseFocus() const|
|virtual void||sendFullTouchEvent(QTouchEvent *event)|
|virtual void||sendTouchPointEvent(int id, const QPointF &position, Qt::TouchPointState state)|
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 11 static public members inherited from QObject
- 9 protected functions inherited from QObject
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.
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.
Sends a touch cancel event for the touch device.
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.
[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().
© 2016 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.