Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qwindowsnativeinterface.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QWINDOWSNATIVEINTERFACE_H
5#define QWINDOWSNATIVEINTERFACE_H
6
7#include <QtGui/qfont.h>
8#include <QtGui/qpa/qplatformnativeinterface.h>
9
10QT_BEGIN_NAMESPACE
11
12/*!
13 \class QWindowsNativeInterface
14 \brief Provides access to native handles.
15
16 Currently implemented keys
17 \list
18 \li handle (HWND)
19 \li getDC (DC)
20 \li releaseDC Releases the previously acquired DC and returns 0.
21 \endlist
22
23 \internal
24*/
25
26class QWindowsNativeInterface : public QPlatformNativeInterface
27{
28 Q_OBJECT
29
30public:
31 void *nativeResourceForIntegration(const QByteArray &resource) override;
32#ifndef QT_NO_OPENGL
33 void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override;
34#endif
35 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
36 void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override;
37#ifndef QT_NO_CURSOR
38 void *nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) override;
39#endif
40};
41
42QT_END_NAMESPACE
43
44#endif // QWINDOWSNATIVEINTERFACE_H
Platform cursor implementation.
static QWindowsStaticOpenGLContext * staticOpenGLContext()
Provides access to native handles.
void * nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void * nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) override
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
Windows screen.
virtual void * moduleHandle() const =0
Raster or OpenGL Window.
static int resourceType(const QByteArray &key)