blob: 5ca4580c21e05a1c0a327eb50007a3c08e34667e (
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
30
31
32
33
|
// 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 QWINDOWSDIRECT2DBACKINGSTORE_H
#define QWINDOWSDIRECT2DBACKINGSTORE_H
#include <QtGui/qpa/qplatformbackingstore.h>
QT_BEGIN_NAMESPACE
class QWindowsDirect2DWindow;
class QWindowsDirect2DBackingStore : public QPlatformBackingStore
{
Q_DISABLE_COPY_MOVE(QWindowsDirect2DBackingStore)
public:
QWindowsDirect2DBackingStore(QWindow *window);
~QWindowsDirect2DBackingStore();
void beginPaint(const QRegion &) override;
void endPaint() override;
QPaintDevice *paintDevice() override;
void flush(QWindow *targetWindow, const QRegion ®ion, const QPoint &offset) override;
void resize(const QSize &size, const QRegion &staticContents) override;
QImage toImage() const override;
};
QT_END_NAMESPACE
#endif // QWINDOWSDIRECT2DBACKINGSTORE_H
|