QWaylandTouch Class
The QWaylandTouch class provides access to a touch device. More...
Header: | #include <QWaylandTouch> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.8 |
Inherits: | QWaylandObject |
This class was introduced in Qt 5.8.
Public Functions
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) |
- 30 public functions inherited from QObject
Related Non-Members
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
This class provides access to the touch device in a QWaylandSeat. It corresponds to the Wayland interface wl_touch.
Member Function Documentation
QWaylandTouch::QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr)
Constructs a QWaylandTouch for the seat and with the given parent.
QWaylandCompositor *QWaylandTouch::compositor() const
Returns the compositor for this QWaylandTouch.
QWaylandSeat *QWaylandTouch::seat() const
Returns the input device for this QWaylandTouch.
[virtual]
void QWaylandTouch::sendCancelEvent(QWaylandClient *client)
Sends a touch cancel event to the touch device of a client.
[virtual]
void QWaylandTouch::sendFrameEvent(QWaylandClient *client)
Sends a touch frame event to the touch device of a client. This indicates the end of a contact point list.
[virtual]
void QWaylandTouch::sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event)
Sends all touch points in event to the specified surface, followed by a touch frame event.
See also sendTouchPointEvent() and sendFrameEvent().
[virtual]
uint QWaylandTouch::sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state)
Sends a touch point event to the touch device of surface with the given id, position, and state.
Returns the serial of the down or up event if sent, otherwise 0.