Qt 6.x
The Qt SDK
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.
virtual QPaintDevice * paintDevice()=0
Implement this function to return the appropriate paint device.
virtual QImage toImage() const
Implemented in subclasses to return the content of the backingstore as a QImage.
virtual void beginPaint(const QRegion &)
This function is called before painting onto the surface begins, with the region in which the paintin...
virtual bool scroll(const QRegion &area, int dx, int dy)
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
virtual void resize(const QSize &size, const QRegion &staticContents)=0
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
Combined button and popup list for selecting options.
static int area(const QSize &s)
Definition qicon.cpp:152
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
aWidget window() -> setWindowTitle("New Window Title")
[2]