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
qunixnativeinterface.cpp
Go to the documentation of this file.
1// Copyright (C) 2020 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#include <QtGui/private/qtguiglobal_p.h>
5
6#if QT_CONFIG(opengl)
7# include <QtGui/private/qopenglcontext_p.h>
8#endif
9#include <QtGui/private/qguiapplication_p.h>
10
11#include <qpa/qplatformopenglcontext.h>
12#include <qpa/qplatformintegration.h>
13#include <qpa/qplatformscreen_p.h>
14#include <qpa/qplatformwindow_p.h>
15
16#include <QtGui/private/qkeymapper_p.h>
17
19
20using namespace QNativeInterface::Private;
21
22#ifndef QT_NO_OPENGL
23
24#if QT_CONFIG(xcb_glx_plugin)
25
68
69QOpenGLContext *QNativeInterface::QGLXContext::fromNative(GLXContext configBasedContext, QOpenGLContext *shareContext)
70{
72 &QGLXIntegration::createOpenGLContext>(configBasedContext, nullptr, shareContext);
73}
74
75QOpenGLContext *QNativeInterface::QGLXContext::fromNative(GLXContext visualBasedContext, void *visualInfo, QOpenGLContext *shareContext)
76{
78 &QGLXIntegration::createOpenGLContext>(visualBasedContext, visualInfo, shareContext);
79}
80#endif // QT_CONFIG(xcb_glx_plugin)
81
82#if QT_CONFIG(egl)
83
142QT_DEFINE_NATIVE_INTERFACE(QEGLContext);
144
145QOpenGLContext *QNativeInterface::QEGLContext::fromNative(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext)
146{
148 &QEGLIntegration::createOpenGLContext>(context, display, shareContext);
149}
150#endif // QT_CONFIG(egl)
151
152#endif // QT_NO_OPENGL
153
154#if QT_CONFIG(xcb)
155
166
177
207QT_DEFINE_NATIVE_INTERFACE(QX11Application);
208
209#endif // QT_CONFIG(xcb)
210
211#if QT_CONFIG(vsp2)
213#endif
214
215#ifdef Q_OS_WEBOS
217#endif
218
219#if QT_CONFIG(evdev)
220
231
232#endif // QT_CONFIG(evdev)
233
234#if QT_CONFIG(wayland)
235
280QT_DEFINE_NATIVE_INTERFACE(QWaylandApplication);
281
296QT_DEFINE_NATIVE_INTERFACE(QWaylandScreen);
297
308
309#endif // QT_CONFIG(wayland)
310
static QPlatformIntegration * platformIntegration()
\inmodule QtGui
struct wl_display * display
Definition linuxdmabuf.h:41
Combined button and popup list for selecting options.
static void * context
typedef EGLDisplay(EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC)(EGLenum platform
#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE(...)
#define QT_DEFINE_NATIVE_INTERFACE(...)