1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- #ifndef QPAINTDEVICEWINDOW_H
- #define QPAINTDEVICEWINDOW_H
- #include <QtGui/QWindow>
- #include <QtGui/QPaintDevice>
- QT_BEGIN_NAMESPACE
- class QPaintDeviceWindowPrivate;
- class QPaintEvent;
- class Q_GUI_EXPORT QPaintDeviceWindow : public QWindow, public QPaintDevice
- {
- Q_OBJECT
- Q_DECLARE_PRIVATE(QPaintDeviceWindow)
- public:
- void update(const QRect &rect);
- void update(const QRegion ®ion);
- using QWindow::width;
- using QWindow::height;
- using QWindow::devicePixelRatio;
- public Q_SLOTS:
- void update();
- protected:
- virtual void paintEvent(QPaintEvent *event);
- int metric(PaintDeviceMetric metric) const Q_DECL_OVERRIDE;
- void exposeEvent(QExposeEvent *) Q_DECL_OVERRIDE;
- bool event(QEvent *event) Q_DECL_OVERRIDE;
- QPaintDeviceWindow(QPaintDeviceWindowPrivate &dd, QWindow *parent);
- private:
- QPaintEngine *paintEngine() const Q_DECL_OVERRIDE;
- Q_DISABLE_COPY(QPaintDeviceWindow)
- };
- QT_END_NAMESPACE
- #endif
|