1// Copyright (C) 2016 Pelagicore AG
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QEGLFSKMSEGLDEVICE_H
5#define QEGLFSKMSEGLDEVICE_H
6
7#include <private/qeglfskmsdevice_p.h>
8
9QT_BEGIN_NAMESPACE
10
11class QPlatformCursor;
12class QEglFSKmsEglDeviceIntegration;
13
14class QEglFSKmsEglDevice: public QEglFSKmsDevice
15{
16public:
17 QEglFSKmsEglDevice(QEglFSKmsEglDeviceIntegration *devInt, QKmsScreenConfig *screenConfig, const QString &path);
18
19 bool open() override;
20 void close() override;
21
22 void *nativeDisplay() const override;
23
24 QPlatformScreen *createScreen(const QKmsOutput &output) override;
25
26 QPlatformCursor *globalCursor() { return m_globalCursor; }
27 void destroyGlobalCursor();
28
29private:
30 QEglFSKmsEglDeviceIntegration *m_devInt;
31 QPlatformCursor *m_globalCursor;
32};
33
34QT_END_NAMESPACE
35
36#endif // QEGLFSKMSEGLDEVICE_H
37

source code of qtbase/src/plugins/platforms/eglfs/deviceintegration/eglfs_kms_egldevice/qeglfskmsegldevice.h