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
qplatformnativeinterface.cpp
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
6#include <QtCore/qvariant.h>
7#include <QtCore/qmap.h>
8#include <QtGui/qcursor.h>
9
11
12/*!
13 \class QPlatformNativeInterface
14 \since 5.0
15 \internal
16 \preliminary
17 \ingroup qpa
18
19 \brief The QPlatformNativeInterface class provides an abstraction for retrieving native
20 resource handles.
21 */
22
23void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource)
24{
25 Q_UNUSED(resource);
26 return nullptr;
27}
28
29void *QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen)
30{
31 Q_UNUSED(resource);
32 Q_UNUSED(screen);
33 return nullptr;
34}
35
36void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window)
37{
38 Q_UNUSED(resource);
39 Q_UNUSED(window);
40 return nullptr;
41}
42
43void *QPlatformNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context)
44{
45 Q_UNUSED(resource);
46 Q_UNUSED(context);
47 return nullptr;
48}
49
50void * QPlatformNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore)
51{
52 Q_UNUSED(resource);
53 Q_UNUSED(backingStore);
54 return nullptr;
55}
56
57#ifndef QT_NO_CURSOR
58void *QPlatformNativeInterface::nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor)
59{
60 Q_UNUSED(resource);
61 Q_UNUSED(cursor);
62 return nullptr;
63}
64#endif // !QT_NO_CURSOR
65
66QPlatformNativeInterface::NativeResourceForIntegrationFunction QPlatformNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource)
67{
68 Q_UNUSED(resource);
69 return nullptr;
70}
71
72QPlatformNativeInterface::NativeResourceForContextFunction QPlatformNativeInterface::nativeResourceFunctionForContext(const QByteArray &resource)
73{
74 Q_UNUSED(resource);
75 return nullptr;
76}
77
78QPlatformNativeInterface::NativeResourceForScreenFunction QPlatformNativeInterface::nativeResourceFunctionForScreen(const QByteArray &resource)
79{
80 Q_UNUSED(resource);
81 return nullptr;
82}
83
84QPlatformNativeInterface::NativeResourceForWindowFunction QPlatformNativeInterface::nativeResourceFunctionForWindow(const QByteArray &resource)
85{
86 Q_UNUSED(resource);
87 return nullptr;
88}
89
90QPlatformNativeInterface::NativeResourceForBackingStoreFunction QPlatformNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource)
91{
92 Q_UNUSED(resource);
93 return nullptr;
94}
95
96QFunctionPointer QPlatformNativeInterface::platformFunction(const QByteArray &function) const
97{
98 Q_UNUSED(function);
99 return nullptr;
100}
101
102/*!
103 Contains generic window properties that the platform may utilize.
104*/
105QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window) const
106{
107 Q_UNUSED(window);
108 return QVariantMap();
109}
110
111/*!
112 Returns a window property with \a name.
113
114 If the property does not exist, returns a default-constructed value.
115*/
116QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name) const
117{
118 Q_UNUSED(window);
119 Q_UNUSED(name);
120 return QVariant();
121}
122
123/*!
124 Returns a window property with \a name. If the value does not exist, defaultValue is returned.
125*/
126QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name, const QVariant &defaultValue) const
127{
128 Q_UNUSED(window);
129 Q_UNUSED(name);
130 Q_UNUSED(defaultValue);
131 return QVariant();
132}
133
134/*!
135 Sets a window property with \a name to \a value.
136*/
137void QPlatformNativeInterface::setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value)
138{
139 Q_UNUSED(window);
140 Q_UNUSED(name);
141 Q_UNUSED(value);
142}
143
144QT_END_NAMESPACE
145
146#include "moc_qplatformnativeinterface.cpp"
Combined button and popup list for selecting options.