| 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 QRASTERWINDOW_H |
| 5 | #define QRASTERWINDOW_H |
| 6 | |
| 7 | #include <QtGui/qtguiglobal.h> |
| 8 | #include <QtGui/QPaintDeviceWindow> |
| 9 | |
| 10 | QT_BEGIN_NAMESPACE |
| 11 | |
| 12 | class QRasterWindowPrivate; |
| 13 | |
| 14 | class Q_GUI_EXPORT QRasterWindow : public QPaintDeviceWindow |
| 15 | { |
| 16 | Q_OBJECT |
| 17 | Q_DECLARE_PRIVATE(QRasterWindow) |
| 18 | |
| 19 | public: |
| 20 | explicit QRasterWindow(QWindow *parent = nullptr); |
| 21 | ~QRasterWindow(); |
| 22 | |
| 23 | protected: |
| 24 | int metric(PaintDeviceMetric metric) const override; |
| 25 | QPaintDevice *redirected(QPoint *) const override; |
| 26 | void resizeEvent(QResizeEvent *event) override; |
| 27 | |
| 28 | private: |
| 29 | Q_DISABLE_COPY(QRasterWindow) |
| 30 | }; |
| 31 | |
| 32 | QT_END_NAMESPACE |
| 33 | |
| 34 | #endif |
| 35 | |