Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qplatformoffscreensurface.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
QPLATFORMOFFSCREENSURFACE_H
6
#
define
QPLATFORMOFFSCREENSURFACE_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is part of the QPA API and is not meant to be used
13
// in applications. Usage of this API may make your code
14
// source and binary incompatible with future versions of Qt.
15
//
16
17
#
include
"qplatformsurface.h"
18
19
#
include
<
QtGui
/
qoffscreensurface
.
h
>
20
#
include
<
QtCore
/
qscopedpointer
.
h
>
21
22
#
include
<
QtCore
/
qnativeinterface
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QOffscreenSurface;
27
class
QPlatformScreen;
28
class
QPlatformOffscreenSurfacePrivate
;
29
30
class
Q_GUI_EXPORT
QPlatformOffscreenSurface
:
public
QPlatformSurface
31
{
32
Q_DECLARE_PRIVATE(QPlatformOffscreenSurface)
33
public
:
34
explicit
QPlatformOffscreenSurface(QOffscreenSurface *offscreenSurface);
35
~QPlatformOffscreenSurface() override;
36
37
QOffscreenSurface *offscreenSurface()
const
;
38
39
QPlatformScreen *screen()
const
override;
40
41
virtual
QSurfaceFormat format()
const
override;
42
virtual
bool
isValid()
const
;
43
44
protected
:
45
QScopedPointer<QPlatformOffscreenSurfacePrivate> d_ptr;
46
friend
class
QOffscreenSurfacePrivate;
47
private
:
48
Q_DISABLE_COPY(QPlatformOffscreenSurface)
49
};
50
51
namespace
QNativeInterface::
Private
{
52
53
#
if
defined
(
Q_OS_ANDROID
)
54
struct
Q_GUI_EXPORT
QAndroidOffScreenIntegration
55
{
56
QT_DECLARE_NATIVE_INTERFACE
(
QAndroidOffScreenIntegration
)
57
virtual
QOffscreenSurface
*
createOffscreenSurface
(
ANativeWindow
*
nativeSurface
)
const
= 0;
58
};
59
#
endif
60
61
}
// QNativeInterface::Private
62
63
64
QT_END_NAMESPACE
65
66
#
endif
// QPLATFORMOFFSCREENSURFACE_H
QPlatformOffscreenSurfacePrivate
Definition
qplatformoffscreensurface.cpp:13
QPlatformOffscreenSurface
Definition
qplatformoffscreensurface.h:31
QNativeInterface
Definition
qnativeinterface.h:51
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
gui
kernel
qplatformoffscreensurface.h
Generated on
for Qt by
1.18.0