KWin
Loading...
Searching...
No Matches
touchclienttest.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2014, 2015 Martin Gräßlin <mgraesslin@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6#pragma once
7
8#include <QObject>
9#include <QSize>
10
11namespace KWayland
12{
13namespace Client
14{
15class Compositor;
16class ConnectionThread;
17class EventQueue;
18class Output;
19class Registry;
20class ShmPool;
21class Surface;
22}
23}
24
25class QThread;
26class QTimer;
27
28class WaylandClientTest : public QObject
29{
30 Q_OBJECT
31public:
32 explicit WaylandClientTest(QObject *parent = nullptr);
33 virtual ~WaylandClientTest();
34
35private:
36 void init();
37 void render(const QSize &size);
38 void render();
39 void setupRegistry(KWayland::Client::Registry *registry);
40 QThread *m_connectionThread;
41 KWayland::Client::ConnectionThread *m_connectionThreadObject;
42 KWayland::Client::EventQueue *m_eventQueue;
43 KWayland::Client::Compositor *m_compositor;
44 KWayland::Client::Output *m_output;
45 KWayland::Client::Surface *m_surface;
46 KWayland::Client::ShmPool *m_shm;
47 QSize m_currentSize;
48 QTimer *m_timer;
49};
The Client class encapsulates a window decoration frame.
WaylandClientTest(QObject *parent=nullptr)