File indexing completed on 2025-01-18 10:07:57
0001
0002
0003
0004 #ifndef QBACKINGSTORE_H
0005 #define QBACKINGSTORE_H
0006
0007 #include <QtGui/qtguiglobal.h>
0008 #include <QtCore/qrect.h>
0009
0010 #include <QtGui/qwindow.h>
0011 #include <QtGui/qregion.h>
0012
0013 QT_BEGIN_NAMESPACE
0014
0015
0016 class QRegion;
0017 class QRect;
0018 class QPoint;
0019 class QImage;
0020 class QBackingStorePrivate;
0021 class QPlatformBackingStore;
0022
0023 class Q_GUI_EXPORT QBackingStore
0024 {
0025 public:
0026 explicit QBackingStore(QWindow *window);
0027 ~QBackingStore();
0028
0029 QWindow *window() const;
0030
0031 QPaintDevice *paintDevice();
0032
0033 void flush(const QRegion ®ion, QWindow *window = nullptr, const QPoint &offset = QPoint());
0034
0035 void resize(const QSize &size);
0036 QSize size() const;
0037
0038 bool scroll(const QRegion &area, int dx, int dy);
0039
0040 void beginPaint(const QRegion &);
0041 void endPaint();
0042
0043 void setStaticContents(const QRegion ®ion);
0044 QRegion staticContents() const;
0045 bool hasStaticContents() const;
0046
0047 QPlatformBackingStore *handle() const;
0048
0049 private:
0050 QScopedPointer<QBackingStorePrivate> d_ptr;
0051 };
0052
0053 QT_END_NAMESPACE
0054
0055 #endif