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
qwaylandshm_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 LG Electronics Inc, author: <mikko.levonmaa@lge.com>
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
QWAYLANDSHM_H
6
#
define
QWAYLANDSHM_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
<
QImage
>
20
#
include
<
QList
>
21
22
#
include
<
QtWaylandClient
/
qtwaylandclientglobal
.
h
>
23
#
include
<
QtWaylandClient
/
private
/
qwayland
-
wayland
.
h
>
24
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
namespace
QtWaylandClient
{
29
30
class
QWaylandDisplay;
31
32
class
Q_WAYLANDCLIENT_EXPORT
QWaylandShm
:
public
QtWayland
::
wl_shm
33
{
34
35
public
:
36
37
QWaylandShm
(
QWaylandDisplay
*
display
,
int
version
,
uint32_t
id
);
38
~
QWaylandShm
()
override
;
39
40
bool
formatSupported
(
wl_shm_format
format
)
const
;
41
bool
formatSupported
(
QImage
::
Format
format
)
const
;
42
43
static
wl_shm_format
formatFrom
(
QImage
::
Format
format
);
44
static
QImage
::
Format
formatFrom
(
wl_shm_format
format
);
45
46
protected
:
47
void
shm_format
(
uint32_t
format
)
override
;
48
49
private
:
50
QList
<
uint32_t
>
m_formats
;
51
52
};
53
54
}
55
56
QT_END_NAMESPACE
57
58
#
endif
QtWaylandClient::QWaylandShm
Definition
qwaylandshm_p.h:33
QtWaylandClient
Definition
qwaylandclientextension.h:16
qtbase
src
plugins
platforms
wayland
qwaylandshm_p.h
Generated on
for Qt by
1.16.1