Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwaylandtouch.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QWAYLANDTOUCH_H
6#define QWAYLANDTOUCH_H
7
8#include <QtWaylandCompositor/QWaylandCompositorExtension>
9
10#include <QtCore/QObject>
11#include <QtGui/QTouchEvent>
12
13struct wl_resource;
14
15QT_BEGIN_NAMESPACE
16
17class QWaylandTouch;
18class QWaylandTouchPrivate;
19class QWaylandSeat;
20class QWaylandView;
21class QWaylandClient;
22class QWaylandSurface;
23
24class Q_WAYLANDCOMPOSITOR_EXPORT QWaylandTouch : public QWaylandObject
25{
26 Q_OBJECT
27 Q_DECLARE_PRIVATE(QWaylandTouch)
28public:
29 QWaylandTouch(QWaylandSeat *seat, QObject *parent = nullptr);
30
31 QWaylandSeat *seat() const;
32 QWaylandCompositor *compositor() const;
33
34 virtual uint sendTouchPointEvent(QWaylandSurface *surface, int id, const QPointF &position, Qt::TouchPointState state);
35 virtual void sendFrameEvent(QWaylandClient *client);
36 virtual void sendCancelEvent(QWaylandClient *client);
37 virtual void sendFullTouchEvent(QWaylandSurface *surface, QTouchEvent *event);
38
39 virtual void addClient(QWaylandClient *client, uint32_t id, uint32_t version);
40};
41
42QT_END_NAMESPACE
43
44#endif /*QWAYLANDTOUCH_H*/
\inmodule QtWaylandCompositor
Combined button and popup list for selecting options.