Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtGui/qpaintdevicewindow.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QPAINTDEVICEWINDOW_H
0005 #define QPAINTDEVICEWINDOW_H
0006 
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtGui/QWindow>
0009 #include <QtGui/QPaintDevice>
0010 
0011 QT_BEGIN_NAMESPACE
0012 
0013 class QPaintDeviceWindowPrivate;
0014 class QPaintEvent;
0015 
0016 class Q_GUI_EXPORT QPaintDeviceWindow : public QWindow, public QPaintDevice
0017 {
0018     Q_OBJECT
0019     Q_DECLARE_PRIVATE(QPaintDeviceWindow)
0020 
0021 public:
0022     void update(const QRect &rect);
0023     void update(const QRegion &region);
0024 
0025     using QWindow::width;
0026     using QWindow::height;
0027     using QWindow::devicePixelRatio;
0028 
0029 public Q_SLOTS:
0030     void update();
0031 
0032 protected:
0033     void exposeEvent(QExposeEvent *) override;
0034     void paintEvent(QPaintEvent *event) override;
0035 
0036     int metric(PaintDeviceMetric metric) const override;
0037     bool event(QEvent *event) override;
0038 
0039     QPaintDeviceWindow(QPaintDeviceWindowPrivate &dd, QWindow *parent);
0040 
0041 private:
0042     QPaintEngine *paintEngine() const override;
0043     Q_DISABLE_COPY(QPaintDeviceWindow)
0044 };
0045 
0046 QT_END_NAMESPACE
0047 
0048 #endif