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
qwaylandserverbufferintegration_p.h
Go to the documentation of this file.
1
// Copyright (C) 2019 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
QWAYLANDSERVERBUFFERINTEGRATION_H
6
#
define
QWAYLANDSERVERBUFFERINTEGRATION_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
/
QSize
>
20
#
include
<
QtGui
/
qopengl
.
h
>
21
22
#
include
<
QtWaylandClient
/
private
/
qwayland
-
server
-
buffer
-
extension
.
h
>
23
#
include
<
QtWaylandClient
/
qtwaylandclientglobal
.
h
>
24
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
QOpenGLTexture;
29
30
namespace
QtWaylandClient
{
31
32
class
QWaylandDisplay;
33
34
class
Q_WAYLANDCLIENT_EXPORT
QWaylandServerBuffer
35
{
36
public
:
37
enum
Format
{
38
RGBA32
,
39
A8
,
40
Custom
41
};
42
43
QWaylandServerBuffer
();
44
virtual
~
QWaylandServerBuffer
();
45
46
virtual
QOpenGLTexture
*
toOpenGlTexture
() = 0;
47
48
Format
format
()
const
;
49
QSize
size
()
const
;
50
51
void
setUserData
(
void
*
userData
);
52
void
*
userData
()
const
;
53
54
protected
:
55
Format
m_format
=
RGBA32
;
56
QSize
m_size
;
57
58
private
:
59
void
*
m_user_data
=
nullptr
;
60
};
61
62
class
Q_WAYLANDCLIENT_EXPORT
QWaylandServerBufferIntegration
63
{
64
public
:
65
QWaylandServerBufferIntegration
();
66
virtual
~
QWaylandServerBufferIntegration
();
67
68
virtual
void
initialize
(
QWaylandDisplay
*
display
) = 0;
69
70
virtual
QWaylandServerBuffer
*
serverBuffer
(
struct
qt_server_buffer
*
buffer
) = 0;
71
};
72
73
}
74
75
QT_END_NAMESPACE
76
77
#
endif
QtWaylandClient::QWaylandServerBufferIntegration
Definition
qwaylandserverbufferintegration_p.h:63
QtWaylandClient::QWaylandServerBuffer
Definition
qwaylandserverbufferintegration_p.h:35
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
qwaylandserverbufferintegration_p.h
Generated on
for Qt by
1.16.1