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
qeglfskmsegldeviceintegration.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Pelagicore AG
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QEGLFSKMSEGLDEVICEINTEGRATION_H
7#define QEGLFSKMSEGLDEVICEINTEGRATION_H
8
9#include <private/qeglfskmsintegration_p.h>
10
11#include <xf86drm.h>
12#include <xf86drmMode.h>
13
14#include <QtGui/private/qeglstreamconvenience_p.h>
15
16QT_BEGIN_NAMESPACE
17
18class QEglFSKmsEglDeviceIntegration : public QEglFSKmsIntegration
19{
20public:
21 QEglFSKmsEglDeviceIntegration();
22
23 QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const override;
24 EGLint surfaceType() const override;
25 EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override;
26 bool supportsSurfacelessContexts() const override;
27 bool supportsPBuffers() const override;
28 QEglFSWindow *createWindow(QWindow *window) const override;
29
30 EGLDeviceEXT eglDevice() const { return m_egl_device; }
31
32protected:
33 QKmsDevice *createDevice() override;
34 QPlatformCursor *createCursor(QPlatformScreen *screen) const override;
35
36private:
37 bool setup_kms();
38 bool query_egl_device();
39
40 EGLDeviceEXT m_egl_device;
41 QEGLStreamConvenience *m_funcs;
42
43 friend class QEglFSKmsEglDeviceWindow;
44};
45
47
48#endif
QEglFSKmsEglDeviceScreen(QEglFSKmsDevice *device, const QKmsOutput &output)
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
QPlatformScreen * createScreen(const QKmsOutput &output) override
QPlatformCursor * globalCursor()
void * nativeDisplay() const override
QEglFSKmsEglDevice(QEglFSKmsEglDeviceIntegration *devInt, QKmsScreenConfig *screenConfig, const QString &path)
Combined button and popup list for selecting options.