Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qbackingstore.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QBACKINGSTORE_H
6#define QBACKINGSTORE_H
7
8#include <QtGui/qtguiglobal.h>
9#include <QtCore/qrect.h>
10
11#include <QtGui/qwindow.h>
12#include <QtGui/qregion.h>
13
14QT_BEGIN_NAMESPACE
15
16
17class QRegion;
18class QRect;
19class QPoint;
20class QImage;
22class QPlatformBackingStore;
23
24class Q_GUI_EXPORT QBackingStore
25{
26public:
27 explicit QBackingStore(QWindow *window);
28 ~QBackingStore();
29
30 QWindow *window() const;
31
32 QPaintDevice *paintDevice();
33
34 void flush(const QRegion &region, QWindow *window = nullptr, const QPoint &offset = QPoint());
35
36 void resize(const QSize &size);
37 QSize size() const;
38
39 bool scroll(const QRegion &area, int dx, int dy);
40
41 void beginPaint(const QRegion &);
42 void endPaint();
43
44 void setStaticContents(const QRegion &region);
45 QRegion staticContents() const;
46 bool hasStaticContents() const;
47
48 QPlatformBackingStore *handle() const;
49
50private:
51 QScopedPointer<QBackingStorePrivate> d_ptr;
52};
53
54QT_END_NAMESPACE
55
56#endif // QBACKINGSTORE_H
qreal deviceIndependentToNativeFactor() const
qreal backingStoreDevicePixelRatio() const
QBackingStorePrivate(QWindow *w)
QPlatformBackingStore * platformBackingStore
QScopedPointer< QImage > highDpiBackingstore
The QBackingStore class provides a drawing area for QWindow.
\inmodule QtCore\reentrant
Definition qpoint.h:30
Combined button and popup list for selecting options.
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)