Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QBACKINGSTORE_H
5#define QBACKINGSTORE_H
6
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qrect.h>
9
10#include <QtGui/qwindow.h>
11#include <QtGui/qregion.h>
12
14
15
16class QRegion;
17class QRect;
18class QPoint;
19class QImage;
22
23class Q_GUI_EXPORT QBackingStore
24{
25public:
26 explicit QBackingStore(QWindow *window);
28
29 QWindow *window() const;
30
31 QPaintDevice *paintDevice();
32
33 void flush(const QRegion &region, QWindow *window = nullptr, const QPoint &offset = QPoint());
34
35 void resize(const QSize &size);
36 QSize size() const;
37
38 bool scroll(const QRegion &area, int dx, int dy);
39
40 void beginPaint(const QRegion &);
41 void endPaint();
42
43 void setStaticContents(const QRegion &region);
44 QRegion staticContents() const;
45 bool hasStaticContents() const;
46
48
49private:
50 QScopedPointer<QBackingStorePrivate> d_ptr;
51};
52
54
55#endif // QBACKINGSTORE_H
The QBackingStore class provides a drawing area for QWindow.
\inmodule QtGui
Definition qimage.h:37
The QPlatformBackingStore class provides the drawing area for top-level windows.
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:30
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
a resize(100000)
Combined button and popup list for selecting options.
static int area(const QSize &s)
Definition qicon.cpp:153
GLuint64 GLenum void * handle
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset
aWidget window() -> setWindowTitle("New Window Title")
[2]