diff options
Diffstat (limited to 'src/gui/painting/qbackingstore.cpp')
-rw-r--r-- | src/gui/painting/qbackingstore.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gui/painting/qbackingstore.cpp b/src/gui/painting/qbackingstore.cpp index 4136c29d4e..68ed3eae6e 100644 --- a/src/gui/painting/qbackingstore.cpp +++ b/src/gui/painting/qbackingstore.cpp @@ -235,16 +235,27 @@ bool QBackingStore::scroll(const QRegion &area, int dx, int dy) return d_ptr->platformBackingStore->scroll(QHighDpi::toNativeLocalRegion(area, d_ptr->window), QHighDpi::toNativePixels(dx, d_ptr->window), QHighDpi::toNativePixels(dy, d_ptr->window)); } +/*! + Set \a region as the static contents of this window. +*/ void QBackingStore::setStaticContents(const QRegion ®ion) { d_ptr->staticContents = region; } +/*! + Returns a pointer to the QRegion that has the static contents + of this window. +*/ QRegion QBackingStore::staticContents() const { return d_ptr->staticContents; } +/*! + Returns a boolean indicating if this window + has static contents or not. +*/ bool QBackingStore::hasStaticContents() const { return !d_ptr->staticContents.isEmpty(); @@ -297,6 +308,9 @@ void Q_GUI_EXPORT qt_scrollRectInImage(QImage &img, const QRect &rect, const QPo } } +/*! + Returns a pointer to the QPlatformBackingStore implementation +*/ QPlatformBackingStore *QBackingStore::handle() const { return d_ptr->platformBackingStore; |