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
qcocoanativeinterface.mm
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/qtgui-config.h>
5#ifndef QT_NO_OPENGL
6# include <QtGui/private/qopenglcontext_p.h>
7#endif
8
9#include <QtGui/private/qguiapplication_p.h>
10#include <qpa/qplatformopenglcontext.h>
11#include <qpa/qplatformintegration.h>
12#include <qpa/qplatformwindow_p.h>
13#include <qpa/qplatformmenu_p.h>
14
15#include <AppKit/AppKit.h>
16
18
19using namespace QNativeInterface::Private;
20
31
32
44
45#ifndef QT_NO_OPENGL
46
77
78QOpenGLContext *QNativeInterface::QCocoaGLContext::fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext)
79{
81 &QCocoaGLIntegration::createOpenGLContext>(nativeContext, shareContext);
82}
83
84#endif // QT_NO_OPENGL
85
static QPlatformIntegration * platformIntegration()
\inmodule QtGui
Combined button and popup list for selecting options.
#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE(...)
#define QT_DEFINE_NATIVE_INTERFACE(...)