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
qminimalbackingstore.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_MINIMAL_H
5#define QBACKINGSTORE_MINIMAL_H
6
7#include <qpa/qplatformbackingstore.h>
8#include <qpa/qplatformwindow.h>
9#include <QtGui/QImage>
10
12
14{
15public:
18
19 QPaintDevice *paintDevice() override;
20 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
21 void resize(const QSize &size, const QRegion &staticContents) override;
22
23private:
24 QImage mImage;
25 const bool mDebug;
26};
27
29
30#endif
\inmodule QtGui
Definition qimage.h:37
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QMinimalBackingStore(QWindow *window)
void resize(const QSize &size, const QRegion &staticContents) override
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
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