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// Qt-Security score:significant reason:default
4
5#ifndef QWINDOWSNATIVEINTERFACE_H
6#define QWINDOWSNATIVEINTERFACE_H
7
8#include <QtGui/qfont.h>
9#include <QtGui/qpa/qplatformnativeinterface.h>
10
11QT_BEGIN_NAMESPACE
12
13/*!
14 \class QWindowsNativeInterface
15 \brief Provides access to native handles.
16
17 Currently implemented keys
18 \list
19 \li handle (HWND)
20 \li getDC (DC)
21 \li releaseDC Releases the previously acquired DC and returns 0.
22 \endlist
23
24 \internal
25*/
26
27class QWindowsNativeInterface : public QPlatformNativeInterface
28{
29 Q_OBJECT
30
31public:
32 void *nativeResourceForIntegration(const QByteArray &resource) override;
33#ifndef QT_NO_OPENGL
34 void *nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override;
35#endif
36 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
37 void *nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override;
38#ifndef QT_NO_CURSOR
39 void *nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) override;
40#endif
41};
42
43QT_END_NAMESPACE
44
45#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.
Combined button and popup list for selecting options.
static int resourceType(const QByteArray &key)