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