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
qwindowsnativeinterface.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/qopenglcontext.h>
5
#include <QtGui/private/qguiapplication_p.h>
6
#include <qpa/qplatformopenglcontext.h>
7
#include <qpa/qplatformintegration.h>
8
#include <qpa/qplatformwindow.h>
9
#include <qpa/qplatformwindow_p.h>
10
#include <qpa/qplatformscreen_p.h>
11
12
QT_BEGIN_NAMESPACE
13
14
using namespace
QNativeInterface::Private
;
15
16
#ifndef QT_NO_OPENGL
17
63
QT_DEFINE_NATIVE_INTERFACE
(
QWGLContext
);
64
QT_DEFINE_PRIVATE_NATIVE_INTERFACE
(QWindowsGLIntegration);
65
66
HMODULE
QNativeInterface::QWGLContext::openGLModuleHandle()
67
{
68
return
QGuiApplicationPrivate::platformIntegration
()->call<
69
&QWindowsGLIntegration::openGLModuleHandle>();
70
}
71
72
QOpenGLContext
*QNativeInterface::QWGLContext::fromNative(HGLRC
context
, HWND
window
,
QOpenGLContext
*shareContext)
73
{
74
return
QGuiApplicationPrivate::platformIntegration
()->call<
75
&QWindowsGLIntegration::createOpenGLContext>(
context
,
window
, shareContext);
76
}
77
78
#endif
// QT_NO_OPENGL
79
89
QT_DEFINE_PRIVATE_NATIVE_INTERFACE
(
QWindowsApplication
);
90
105
QT_DEFINE_NATIVE_INTERFACE
(
QWindowsScreen
);
277
QT_DEFINE_PRIVATE_NATIVE_INTERFACE
(
QWindowsWindow
);
278
312
QT_END_NAMESPACE
QGuiApplicationPrivate::platformIntegration
static QPlatformIntegration * platformIntegration()
Definition
qguiapplication_p.h:90
QWGLContext
\inheaderfile QOpenGLContext
QOpenGLContext
\inmodule QtGui
Definition
qopenglcontext.h:67
QWindowsApplication
Definition
qwindowsapplication.h:12
QWindowsScreen
Windows screen.
Definition
qwindowsscreen.h:45
QWindowsWindow
Raster or OpenGL Window.
Definition
qwindowswindow.h:180
QNativeInterface::Private
Definition
qnativeinterface.h:50
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
context
static void * context
Definition
qandroidaudiosource.cpp:42
QT_DEFINE_PRIVATE_NATIVE_INTERFACE
#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE(...)
Definition
qnativeinterface_p.h:33
QT_DEFINE_NATIVE_INTERFACE
#define QT_DEFINE_NATIVE_INTERFACE(...)
Definition
qnativeinterface_p.h:31
HMODULE
HINSTANCE HMODULE
Definition
qwindowdefs_win.h:40
window
aWidget window() -> setWindowTitle("New Window Title")
[2]
qtbase
src
gui
platform
windows
qwindowsnativeinterface.cpp
Generated by
1.10.0