Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidplatformbackingstore.h
Go to the documentation of this file.
1// Copyright (C) 2014 BogDan Vatra <bogdan@kde.org>
2// Copyright (C) 2016 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QANDROIDPLATFORMBACKINGSTORE_H
6#define QANDROIDPLATFORMBACKINGSTORE_H
7
8#include <qpa/qplatformbackingstore.h>
9#include <qpa/qwindowsysteminterface.h>
10
12
14{
15public:
17 QPaintDevice *paintDevice() override;
18 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
19 void resize(const QSize &size, const QRegion &staticContents) override;
20 QImage toImage() const override { return m_image; }
22protected:
24 bool m_backingStoreSet = false;
25};
26
28
29#endif // QANDROIDPLATFORMBACKINGSTORE_H
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
\inmodule QtGui
Definition qimage.h:37
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:23
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