| 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 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | |
| 11 | class QPlatformCursor; |
| 12 | class QEglFSKmsEglDeviceIntegration; |
| 13 | |
| 14 | class QEglFSKmsEglDevice: public QEglFSKmsDevice |
| 15 | { |
| 16 | public: |
| 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 | |
| 29 | private: |
| 30 | QEglFSKmsEglDeviceIntegration *m_devInt; |
| 31 | QPlatformCursor *m_globalCursor; |
| 32 | }; |
| 33 | |
| 34 | QT_END_NAMESPACE |
| 35 | |
| 36 | #endif // QEGLFSKMSEGLDEVICE_H |
| 37 |
