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
qfbbackingstore_p.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 QFBBACKINGSTORE_P_H
5#define QFBBACKINGSTORE_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 <QtCore/QMutex>
20#include <QtCore/private/qglobal_p.h>
21
23
24class QFbScreen;
25class QFbWindow;
26class QWindow;
27
29{
30public:
33
34 QPaintDevice *paintDevice() override { return &mImage; }
35 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
36
37 void resize(const QSize &size, const QRegion &region) override;
38
39 const QImage image();
40 QImage toImage() const override;
41
42 void lock();
43 void unlock();
44
45 void beginPaint(const QRegion &) override;
46 void endPaint() override;
47
48protected:
49 friend class QFbWindow;
50
53};
54
56
57#endif // QFBBACKINGSTORE_P_H
58
void resize(const QSize &size, const QRegion &region) override
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void endPaint() override
This function is called after painting onto the surface has ended.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
const QImage image()
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QFbBackingStore(QWindow *window)
\inmodule QtGui
Definition qimage.h:37
\inmodule QtCore
Definition qmutex.h:281
The QPlatformBackingStore class provides the drawing area for top-level windows.
QWindow * window() const
Returns a pointer to the top-level window associated with this surface.
\inmodule QtCore\reentrant
Definition qpoint.h:25
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.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset