Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qminimalbackingstore.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QBACKINGSTORE_MINIMAL_H
6#define QBACKINGSTORE_MINIMAL_H
7
8#include <qpa/qplatformbackingstore.h>
9#include <qpa/qplatformwindow.h>
10#include <QtGui/QImage>
11
12QT_BEGIN_NAMESPACE
13
14class QMinimalBackingStore : public QPlatformBackingStore
15{
16public:
17 QMinimalBackingStore(QWindow *window);
18 ~QMinimalBackingStore();
19
20 QPaintDevice *paintDevice() override;
21 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
22 void resize(const QSize &size, const QRegion &staticContents) override;
23
24private:
25 QImage mImage;
26 const bool mDebug;
27};
28
29QT_END_NAMESPACE
30
31#endif
unsigned options() const
static QMinimalIntegration * instance()