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
qeglfskmsgbmintegration_p.h
Go to the documentation of this file.
1// Copyright (C) 2015 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
2// Copyright (C) 2016 The Qt Company Ltd.
3// Copyright (C) 2016 Pelagicore AG
4// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
5// Qt-Security score:significant reason:default
6
7#ifndef QEGLFSKMSGBMINTEGRATION_H
8#define QEGLFSKMSGBMINTEGRATION_H
9
10//
11// W A R N I N G
12// -------------
13//
14// This file is not part of the Qt API. It exists purely as an
15// implementation detail. This header file may change from version to
16// version without notice, or even be removed.
17//
18// We mean it.
19//
20
21#include <private/qeglfskmsintegration_p.h>
22#include <QtCore/QMap>
23#include <QtCore/QVariant>
24
25QT_BEGIN_NAMESPACE
26
27class QEglFSKmsDevice;
28class QDeviceDiscovery;
29class QFileSystemWatcher;
30
31class Q_EGLFS_EXPORT QEglFSKmsGbmIntegration : public QEglFSKmsIntegration
32{
33public:
34 QEglFSKmsGbmIntegration();
35 ~QEglFSKmsGbmIntegration() override;
36
37 EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override;
38 EGLNativeWindowType createNativeOffscreenWindow(const QSurfaceFormat &format) override;
39 void destroyNativeWindow(EGLNativeWindowType window) override;
40
41 QPlatformCursor *createCursor(QPlatformScreen *screen) const override;
42 void presentBuffer(QPlatformSurface *surface) override;
43 QEglFSWindow *createWindow(QWindow *window) const override;
44
45protected:
46 QKmsDevice *createDevice() override;
47
48private:
49 std::unique_ptr<QDeviceDiscovery> m_deviceDiscovery;
50#if QT_CONFIG(filesystemwatcher)
51 std::unique_ptr<QFileSystemWatcher> m_kmsConfigWatcher;
52#endif
53};
54
55QT_END_NAMESPACE
56
57#endif // QEGLFSKMSGBMINTEGRATION_H
Combined button and popup list for selecting options.
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
void * native_display
void const EGLint * attrib_list
#define EGL_PLATFORM_GBM_KHR