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
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
5#ifndef QEGLFSKMSEGLDEVICEINTEGRATION_H
6#define QEGLFSKMSEGLDEVICEINTEGRATION_H
7
8#include <private/qeglfskmsintegration_p.h>
9
10#include <xf86drm.h>
11#include <xf86drmMode.h>
12
13#include <QtGui/private/qeglstreamconvenience_p.h>
14
16
18{
19public:
21
22 QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const override;
23 EGLint surfaceType() const override;
24 EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override;
25 bool supportsSurfacelessContexts() const override;
26 bool supportsPBuffers() const override;
27 QEglFSWindow *createWindow(QWindow *window) const override;
28
29 EGLDeviceEXT eglDevice() const { return m_egl_device; }
30
31protected:
32 QKmsDevice *createDevice() override;
34
35private:
36 bool setup_kms();
37 bool query_egl_device();
38
39 EGLDeviceEXT m_egl_device;
40 QEGLStreamConvenience *m_funcs;
41
43};
44
46
47#endif
EGLDisplay createDisplay(EGLNativeDisplayType nativeDisplay) override
QEglFSWindow * createWindow(QWindow *window) const override
QSurfaceFormat surfaceFormatFor(const QSurfaceFormat &inputFormat) const override
QPlatformCursor * createCursor(QPlatformScreen *screen) const override
The QPlatformCursor class provides information about pointer device events (movement,...
The QPlatformScreen class provides an abstraction for visual displays.
The QSurfaceFormat class represents the format of a QSurface. \inmodule QtGui.
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
void * EGLDeviceEXT
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
QScreen * screen
[1]
Definition main.cpp:29
aWidget window() -> setWindowTitle("New Window Title")
[2]