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 QBACKINGSTORE_MINIMAL_H |
5 | #define QBACKINGSTORE_MINIMAL_H |
6 | |
7 | #include <qpa/qplatformbackingstore.h> |
8 | #include <qpa/qplatformwindow.h> |
9 | #include <QtGui/QImage> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | class QMinimalBackingStore : public QPlatformBackingStore |
14 | { |
15 | public: |
16 | QMinimalBackingStore(QWindow *window); |
17 | ~QMinimalBackingStore(); |
18 | |
19 | QPaintDevice *paintDevice() override; |
20 | void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override; |
21 | void resize(const QSize &size, const QRegion &staticContents) override; |
22 | |
23 | private: |
24 | QImage mImage; |
25 | const bool mDebug; |
26 | }; |
27 | |
28 | QT_END_NAMESPACE |
29 | |
30 | #endif |
31 |