Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QPLATFORMSCREEN_P_H
5#define QPLATFORMSCREEN_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qtguiglobal_p.h>
19
20#include <QtCore/qpointer.h>
21#include <QtCore/qnativeinterface.h>
22
24
25class QScreen;
26
28{
29public:
30 QPointer<QScreen> screen;
31};
32
33// ----------------- QNativeInterface -----------------
34
36
37#if QT_CONFIG(xcb) || defined(Q_QDOC)
38struct Q_GUI_EXPORT QXcbScreen
39{
41 virtual int virtualDesktopNumber() const = 0;
42};
43#endif
44
45#if QT_CONFIG(vsp2) || defined(Q_QDOC)
46struct Q_GUI_EXPORT QVsp2Screen
47{
49 virtual int addLayer(int dmabufFd, const QSize &size, const QPoint &position, uint drmPixelFormat, uint bytesPerLine) = 0;
50 virtual void setLayerBuffer(int id, int dmabufFd) = 0;
51 virtual void setLayerPosition(int id, const QPoint &position) = 0;
52 virtual void setLayerAlpha(int id, qreal alpha) = 0;
53 virtual bool removeLayer(int id) = 0;
54 virtual void addBlendListener(void (*callback)()) = 0;
55};
56#endif
57
58#if defined(Q_OS_WEBOS) || defined(Q_QDOC)
59struct Q_GUI_EXPORT QWebOSScreen
60{
61 QT_DECLARE_NATIVE_INTERFACE(QWebOSScreen, 1, QScreen)
62 virtual int addLayer(void *gbm_bo, const QRectF &geometry) = 0;
63 virtual void setLayerBuffer(int id, void *gbm_bo) = 0;
64 virtual void setLayerGeometry(int id, const QRectF &geometry) = 0;
65 virtual void setLayerAlpha(int id, qreal alpha) = 0;
66 virtual bool removeLayer(int id) = 0;
67 virtual void addFlipListener(void (*callback)()) = 0;
68};
69#endif
70} // QNativeInterface::Private
71
73
74#endif // QPLATFORMSCREEN_P_H
QPointer< QScreen > screen
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:484
The QScreen class is used to query screen properties. \inmodule QtGui.
Definition qscreen.h:32
\inmodule QtCore
Definition qsize.h:25
Combined button and popup list for selecting options.
#define QT_DECLARE_NATIVE_INTERFACE(...)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLfloat GLfloat GLfloat alpha
Definition qopenglext.h:418
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187