blob: 810305ac452ca2d4034d74812fd994a62fb93c61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Copyright (C) 2014 BogDan Vatra <bogdan@kde.org>
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QANDROIDPLATFORMBACKINGSTORE_H
#define QANDROIDPLATFORMBACKINGSTORE_H
#include <qpa/qplatformbackingstore.h>
#include <qpa/qwindowsysteminterface.h>
QT_BEGIN_NAMESPACE
class QAndroidPlatformBackingStore : public QPlatformBackingStore
{
public:
explicit QAndroidPlatformBackingStore(QWindow *window);
QPaintDevice *paintDevice() override;
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override;
void resize(const QSize &size, const QRegion &staticContents) override;
QImage toImage() const override { return m_image; }
void setBackingStore(QWindow *window);
protected:
QImage m_image;
bool m_backingStoreSet = false;
};
QT_END_NAMESPACE
#endif // QANDROIDPLATFORMBACKINGSTORE_H
|