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
qoffscreensurface_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 QOFFSCREENSURFACE_P_H
5#define QOFFSCREENSURFACE_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
19
20#include <private/qwindow_p.h>
21
23
24class Q_GUI_EXPORT QOffscreenSurfacePrivate : public QObjectPrivate
25{
26 Q_DECLARE_PUBLIC(QOffscreenSurface)
27
28public:
31 , surfaceType(QSurface::OpenGLSurface)
32 , platformOffscreenSurface(nullptr)
33 , offscreenWindow(nullptr)
34 , requestedFormat(QSurfaceFormat::defaultFormat())
36 , size(1, 1)
37 {
38 }
39
43
45 {
46 return surface ? surface->d_func() : nullptr;
47 }
48
55};
56
58
59#endif // QOFFSCREENSURFACE_P_H
static QOffscreenSurfacePrivate * get(QOffscreenSurface *surface)
QPlatformOffscreenSurface * platformOffscreenSurface
QSurface::SurfaceType surfaceType
\inmodule QtGui
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
\inmodule QtCore
Definition qsize.h:25
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
\inmodule QtGui
Definition qsurface.h:21
SurfaceType
The SurfaceType enum describes what type of surface this is.
Definition qsurface.h:30
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
QScreen * screen
[1]
Definition main.cpp:29
QObject::connect nullptr