| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
|---|---|
| 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 QLINUXFBDRMSCREEN_H |
| 5 | #define QLINUXFBDRMSCREEN_H |
| 6 | |
| 7 | #include <QtFbSupport/private/qfbscreen_p.h> |
| 8 | |
| 9 | QT_BEGIN_NAMESPACE |
| 10 | |
| 11 | class QKmsScreenConfig; |
| 12 | class QLinuxFbDevice; |
| 13 | |
| 14 | class QLinuxFbDrmScreen : public QFbScreen |
| 15 | { |
| 16 | Q_OBJECT |
| 17 | public: |
| 18 | QLinuxFbDrmScreen(const QStringList &args); |
| 19 | ~QLinuxFbDrmScreen(); |
| 20 | |
| 21 | bool initialize() override; |
| 22 | QRegion doRedraw() override; |
| 23 | QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override; |
| 24 | |
| 25 | private: |
| 26 | QKmsScreenConfig *m_screenConfig; |
| 27 | QLinuxFbDevice *m_device; |
| 28 | }; |
| 29 | |
| 30 | QT_END_NAMESPACE |
| 31 | |
| 32 | #endif // QLINUXFBDRMSCREEN_H |
| 33 |
