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
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QOFFSCREENSURFACE_P_H
6
#
define
QOFFSCREENSURFACE_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
"qplatformoffscreensurface.h"
20
21
#
include
<
private
/
qwindow_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
Q_GUI_EXPORT
QOffscreenSurfacePrivate
:
public
QObjectPrivate
26
{
27
Q_DECLARE_PUBLIC(QOffscreenSurface)
28
29
public
:
30
QOffscreenSurfacePrivate()
31
: QObjectPrivate()
32
, surfaceType(QSurface::OpenGLSurface)
33
, platformOffscreenSurface(
nullptr
)
34
, offscreenWindow(
nullptr
)
35
, requestedFormat(QSurfaceFormat::defaultFormat())
36
, screen(
nullptr
)
37
, size(1, 1)
38
{
39
}
40
41
~QOffscreenSurfacePrivate()
42
{
43
}
44
45
static
QOffscreenSurfacePrivate *get(QOffscreenSurface *surface)
46
{
47
return
surface ? surface->d_func() :
nullptr
;
48
}
49
50
QSurface::SurfaceType surfaceType;
51
QPlatformOffscreenSurface *platformOffscreenSurface;
52
QWindow *offscreenWindow;
53
QSurfaceFormat requestedFormat;
54
QScreen *screen;
55
QSize size;
56
};
57
58
QT_END_NAMESPACE
59
60
#
endif
// QOFFSCREENSURFACE_P_H
QGuiApplicationPrivate
\inmodule QtGui
Definition
qguiapplication_p.h:65
QOffscreenSurfacePrivate
Definition
qoffscreensurface_p.h:26
QOffscreenSurface
\inmodule QtGui
Definition
qoffscreensurface.h:22
QNativeInterface
Definition
qnativeinterface.h:51
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
gui
kernel
qoffscreensurface_p.h
Generated on
for Qt by
1.16.1