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
24QT_BEGIN_NAMESPACE
25
26class QScreen;
27
33
34// ----------------- QNativeInterface -----------------
35
36namespace QNativeInterface::Private {
37
38#if QT_CONFIG(xcb) || defined(Q_QDOC)
40{
42 virtual int virtualDesktopNumber() const = 0;
43};
44#endif
45
46#if QT_CONFIG(vsp2) || defined(Q_QDOC)
48{
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)
61{
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
73QT_END_NAMESPACE
74
75#endif // QPLATFORMSCREEN_P_H
QPointer< QScreen > screen