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
qwaylandclientbufferintegration_p.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
QWAYLANDCLIENTBUFFERINTEGRATION_H
6
#
define
QWAYLANDCLIENTBUFFERINTEGRATION_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
<
QtCore
/
private
/
qglobal_p
.
h
>
20
#
include
<
QtWaylandClient
/
qtwaylandclientglobal
.
h
>
21
#
if
QT_CONFIG
(
opengl
)
22
#
include
<
QtGui
/
private
/
qeglplatformcontext_p
.
h
>
23
#
endif
24
25
QT_BEGIN_NAMESPACE
26
27
class
QWindow;
28
#
if
QT_CONFIG
(
opengl
)
29
class
QOpenGLContext;
30
class
QPlatformOpenGLContext;
31
#
endif
32
class
QPlatformOffscreenSurface;
33
class
QSurfaceFormat;
34
class
QOffscreenSurface;
35
36
namespace
QtWaylandClient
{
37
38
class
QWaylandWindow;
39
class
QWaylandDisplay;
40
41
class
Q_WAYLANDCLIENT_EXPORT
QWaylandClientBufferIntegration
42
{
43
public
:
44
QWaylandClientBufferIntegration
();
45
virtual
~
QWaylandClientBufferIntegration
();
46
47
virtual
void
initialize
(
QWaylandDisplay
*
display
) = 0;
48
49
virtual
bool
isValid
()
const
{
return
true
; }
50
51
virtual
bool
supportsThreadedOpenGL
()
const
{
return
false
; }
52
virtual
bool
supportsWindowDecoration
()
const
{
return
false
; }
53
54
virtual
QWaylandWindow
*
createEglWindow
(
QWindow
*
window
) = 0;
55
virtual
QPlatformOpenGLContext
*
createPlatformOpenGLContext
(
const
QSurfaceFormat
&
glFormat
,
QPlatformOpenGLContext
*
share
)
const
= 0;
56
virtual
bool
canCreatePlatformOffscreenSurface
()
const
{
return
false
; }
57
#
if
QT_CONFIG
(
opengl
)
58
virtual
QOpenGLContext
*
createOpenGLContext
(
EGLContext
context
,
EGLDisplay
contextDisplay
,
QOpenGLContext
*
shareContext
)
const
= 0;
59
virtual
QPlatformOffscreenSurface
*
createPlatformOffscreenSurface
(
QOffscreenSurface
*
surface
)
const
{
Q_UNUSED
(
surface
);
return
nullptr
; }
60
#
endif
61
62
enum
NativeResource
{
63
EglDisplay
,
64
EglConfig
,
65
EglContext
66
};
67
virtual
void
*
nativeResource
(
NativeResource
/*resource*/
) {
return
nullptr
; }
68
virtual
void
*
nativeResourceForContext
(
NativeResource
/*resource*/
,
QPlatformOpenGLContext
*
/*context*/
) {
return
nullptr
; }
69
};
70
71
}
72
73
QT_END_NAMESPACE
74
75
#
endif
// QWAYLANDCLIENTBUFFERINTEGRATION_H
QtWaylandClient::QWaylandClientBufferIntegration
Definition
qwaylandclientbufferintegration_p.h:42
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtbase
src
plugins
platforms
wayland
hardwareintegration
qwaylandclientbufferintegration_p.h
Generated on
for Qt by
1.16.1