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
11QT_BEGIN_NAMESPACE
12
13class QMinimalBackingStore : public QPlatformBackingStore
14{
15public:
16 QMinimalBackingStore(QWindow *window);
17 ~QMinimalBackingStore();
18
19 QPaintDevice *paintDevice() override;
20 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
21 void resize(const QSize &size, const QRegion &staticContents) override;
22
23private:
24 QImage mImage;
25 const bool mDebug;
26};
27
28QT_END_NAMESPACE
29
30#endif
31

source code of qtbase/src/plugins/platforms/minimal/qminimalbackingstore.h