mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-30 07:46:51 +08:00
33 lines
680 B
C
33 lines
680 B
C
|
// Copyright (C) 2017 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
||
|
|
||
|
#ifndef RASTERWINDOW_H
|
||
|
#define RASTERWINDOW_H
|
||
|
|
||
|
#include <QtGui>
|
||
|
|
||
|
class RasterWindow : public QWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit RasterWindow(QWindow *parent = nullptr);
|
||
|
|
||
|
virtual void render(QPainter *painter);
|
||
|
|
||
|
public slots:
|
||
|
void renderLater();
|
||
|
void renderNow();
|
||
|
|
||
|
protected:
|
||
|
bool event(QEvent *event) override;
|
||
|
|
||
|
void resizeEvent(QResizeEvent *event) override;
|
||
|
void exposeEvent(QExposeEvent *event) override;
|
||
|
|
||
|
private:
|
||
|
QBackingStore *m_backingStore;
|
||
|
bool m_update_pending;
|
||
|
};
|
||
|
|
||
|
#endif // RASTERWINDOW_H
|