Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qminimaleglbackingstore.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// Qt-Security score:significant reason:default
4
5#ifndef QMINIMALEGLBACKINGSTORE_H
6#define QMINIMALEGLBACKINGSTORE_H
7
8#include <qpa/qplatformbackingstore.h>
9
10QT_BEGIN_NAMESPACE
11
12class QOpenGLContext;
14
16{
17public:
18 QMinimalEglBackingStore(QWindow *window);
20
21 QPaintDevice *paintDevice() override;
22
23 void beginPaint(const QRegion &) override;
24 void endPaint() override;
25
26 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
27 void resize(const QSize &size, const QRegion &staticContents) override;
28
29private:
30 QOpenGLContext *m_context;
31 QOpenGLPaintDevice *m_device;
32};
33
34QT_END_NAMESPACE
35
36#endif // QMINIMALEGLBACKINGSTORE_H
void endPaint() override
This function is called after painting onto the surface has ended.
void resize(const QSize &size, const QRegion &staticContents) override
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
\inmodule QtGui
Definition qwindow.h:64
Combined button and popup list for selecting options.