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
qplatformscreen_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
QPLATFORMSCREEN_P_H
6
#
define
QPLATFORMSCREEN_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
<
QtGui
/
private
/
qtguiglobal_p
.
h
>
20
21
#
include
<
QtCore
/
qpointer
.
h
>
22
#
include
<
QtCore
/
qnativeinterface
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
class
QScreen;
27
28
class
QPlatformScreenPrivate
29
{
30
public
:
31
QPointer
<
QScreen
>
screen
;
32
};
33
34
// ----------------- QNativeInterface -----------------
35
36
namespace
QNativeInterface::
Private
{
37
38
#
if
QT_CONFIG
(
xcb
)
||
defined
(
Q_QDOC
)
39
struct
Q_GUI_EXPORT
QXcbScreen
40
{
41
QT_DECLARE_NATIVE_INTERFACE
(
QXcbScreen
, 1,
QScreen
)
42
virtual
int
virtualDesktopNumber
()
const
= 0;
43
};
44
#
endif
45
46
#
if
QT_CONFIG
(
vsp2
)
||
defined
(
Q_QDOC
)
47
struct
Q_GUI_EXPORT
QVsp2Screen
48
{
49
QT_DECLARE_NATIVE_INTERFACE
(
QVsp2Screen
, 1,
QScreen
)
50
virtual
int
addLayer
(
int
dmabufFd
,
const
QSize
&
size
,
const
QPoint
&
position
,
uint
drmPixelFormat
,
uint
bytesPerLine
) = 0;
51
virtual
void
setLayerBuffer
(
int
id
,
int
dmabufFd
) = 0;
52
virtual
void
setLayerPosition
(
int
id
,
const
QPoint
&
position
) = 0;
53
virtual
void
setLayerAlpha
(
int
id
,
qreal
alpha
) = 0;
54
virtual
bool
removeLayer
(
int
id
) = 0;
55
virtual
void
addBlendListener
(
void
(*
callback
)()) = 0;
56
};
57
#
endif
58
59
#
if
defined
(
Q_OS_WEBOS
)
||
defined
(
Q_QDOC
)
60
struct
Q_GUI_EXPORT
QWebOSScreen
61
{
62
QT_DECLARE_NATIVE_INTERFACE
(
QWebOSScreen
, 1,
QScreen
)
63
virtual
int
addLayer
(
void
*
gbm_bo
,
const
QRectF
&
geometry
) = 0;
64
virtual
void
setLayerBuffer
(
int
id
,
void
*
gbm_bo
) = 0;
65
virtual
void
setLayerGeometry
(
int
id
,
const
QRectF
&
geometry
) = 0;
66
virtual
void
setLayerAlpha
(
int
id
,
qreal
alpha
) = 0;
67
virtual
bool
removeLayer
(
int
id
) = 0;
68
virtual
void
addFlipListener
(
void
(*
callback
)()) = 0;
69
};
70
#
endif
71
}
// QNativeInterface::Private
72
73
QT_END_NAMESPACE
74
75
#
endif
// QPLATFORMSCREEN_P_H
QPlatformScreenPrivate
Definition
qplatformscreen_p.h:29
QPlatformScreenPrivate::screen
QPointer< QScreen > screen
Definition
qplatformscreen_p.h:31
QNativeInterface
Definition
qnativeinterface.h:51
qtbase
src
gui
kernel
qplatformscreen_p.h
Generated on
for Qt by
1.16.1