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
qrasterbackingstore_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QRASTERBACKINGSTORE_P_H
5#define QRASTERBACKINGSTORE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <qpa/qplatformbackingstore.h>
19#include <private/qglobal_p.h>
20
21
23
24class Q_GUI_EXPORT QRasterBackingStore : public QPlatformBackingStore
25{
26public:
29
30 void resize(const QSize &size, const QRegion &staticContents) override;
31 bool scroll(const QRegion &area, int dx, int dy) override;
32 void beginPaint(const QRegion &region) override;
33
34 QPaintDevice *paintDevice() override;
35 QImage toImage() const override;
36
37protected:
38 virtual QImage::Format format() const;
39
42};
43
45
46#endif // QRASTERBACKINGSTORE_P_H
\inmodule QtGui
Definition qimage.h:37
Format
The following image formats are available in Qt.
Definition qimage.h:41
The QPlatformBackingStore class provides the drawing area for top-level windows.
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
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
aWidget window() -> setWindowTitle("New Window Title")
[2]