1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2016 The Qt Company Ltd. |
4 | ** Contact: https://www.qt.io/licensing/ |
5 | ** |
6 | ** This file is part of the QtGui module of the Qt Toolkit. |
7 | ** |
8 | ** $QT_BEGIN_LICENSE:LGPL$ |
9 | ** Commercial License Usage |
10 | ** Licensees holding valid commercial Qt licenses may use this file in |
11 | ** accordance with the commercial license agreement provided with the |
12 | ** Software or, alternatively, in accordance with the terms contained in |
13 | ** a written agreement between you and The Qt Company. For licensing terms |
14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
15 | ** information use the contact form at https://www.qt.io/contact-us. |
16 | ** |
17 | ** GNU Lesser General Public License Usage |
18 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
19 | ** General Public License version 3 as published by the Free Software |
20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
21 | ** packaging of this file. Please review the following information to |
22 | ** ensure the GNU Lesser General Public License version 3 requirements |
23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
24 | ** |
25 | ** GNU General Public License Usage |
26 | ** Alternatively, this file may be used under the terms of the GNU |
27 | ** General Public License version 2.0 or (at your option) the GNU General |
28 | ** Public license version 3 or any later version approved by the KDE Free |
29 | ** Qt Foundation. The licenses are as published by the Free Software |
30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
31 | ** included in the packaging of this file. Please review the following |
32 | ** information to ensure the GNU General Public License requirements will |
33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
34 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
35 | ** |
36 | ** $QT_END_LICENSE$ |
37 | ** |
38 | ****************************************************************************/ |
39 | |
40 | #include "qplatformnativeinterface.h" |
41 | #include <QtGui/qcursor.h> |
42 | |
43 | QT_BEGIN_NAMESPACE |
44 | |
45 | /*! |
46 | \class QPlatformNativeInterface |
47 | \since 5.0 |
48 | \internal |
49 | \preliminary |
50 | \ingroup qpa |
51 | |
52 | \brief The QPlatformNativeInterface class provides an abstraction for retrieving native |
53 | resource handles. |
54 | */ |
55 | |
56 | void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource) |
57 | { |
58 | Q_UNUSED(resource); |
59 | return nullptr; |
60 | } |
61 | |
62 | void *QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen) |
63 | { |
64 | Q_UNUSED(resource); |
65 | Q_UNUSED(screen); |
66 | return nullptr; |
67 | } |
68 | |
69 | void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window) |
70 | { |
71 | Q_UNUSED(resource); |
72 | Q_UNUSED(window); |
73 | return nullptr; |
74 | } |
75 | |
76 | void *QPlatformNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) |
77 | { |
78 | Q_UNUSED(resource); |
79 | Q_UNUSED(context); |
80 | return nullptr; |
81 | } |
82 | |
83 | void * QPlatformNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore) |
84 | { |
85 | Q_UNUSED(resource); |
86 | Q_UNUSED(backingStore); |
87 | return nullptr; |
88 | } |
89 | |
90 | #ifndef QT_NO_CURSOR |
91 | void *QPlatformNativeInterface::nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) |
92 | { |
93 | Q_UNUSED(resource); |
94 | Q_UNUSED(cursor); |
95 | return nullptr; |
96 | } |
97 | #endif // !QT_NO_CURSOR |
98 | |
99 | QPlatformNativeInterface::NativeResourceForIntegrationFunction QPlatformNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource) |
100 | { |
101 | Q_UNUSED(resource); |
102 | return nullptr; |
103 | } |
104 | |
105 | QPlatformNativeInterface::NativeResourceForContextFunction QPlatformNativeInterface::nativeResourceFunctionForContext(const QByteArray &resource) |
106 | { |
107 | Q_UNUSED(resource); |
108 | return nullptr; |
109 | } |
110 | |
111 | QPlatformNativeInterface::NativeResourceForScreenFunction QPlatformNativeInterface::nativeResourceFunctionForScreen(const QByteArray &resource) |
112 | { |
113 | Q_UNUSED(resource); |
114 | return nullptr; |
115 | } |
116 | |
117 | QPlatformNativeInterface::NativeResourceForWindowFunction QPlatformNativeInterface::nativeResourceFunctionForWindow(const QByteArray &resource) |
118 | { |
119 | Q_UNUSED(resource); |
120 | return nullptr; |
121 | } |
122 | |
123 | QPlatformNativeInterface::NativeResourceForBackingStoreFunction QPlatformNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource) |
124 | { |
125 | Q_UNUSED(resource); |
126 | return nullptr; |
127 | } |
128 | |
129 | QFunctionPointer QPlatformNativeInterface::platformFunction(const QByteArray &function) const |
130 | { |
131 | Q_UNUSED(function); |
132 | return nullptr; |
133 | } |
134 | |
135 | /*! |
136 | Contains generic window properties that the platform may utilize. |
137 | */ |
138 | QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window) const |
139 | { |
140 | Q_UNUSED(window) |
141 | return QVariantMap(); |
142 | } |
143 | |
144 | /*! |
145 | Returns a window property with \a name. |
146 | |
147 | If the property does not exist, returns a default-constructed value. |
148 | */ |
149 | QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name) const |
150 | { |
151 | Q_UNUSED(window); |
152 | Q_UNUSED(name); |
153 | return QVariant(); |
154 | } |
155 | |
156 | /*! |
157 | Returns a window property with \a name. If the value does not exist, defaultValue is returned. |
158 | */ |
159 | QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name, const QVariant &defaultValue) const |
160 | { |
161 | Q_UNUSED(window); |
162 | Q_UNUSED(name); |
163 | Q_UNUSED(defaultValue); |
164 | return QVariant(); |
165 | } |
166 | |
167 | /*! |
168 | Sets a window property with \a name to \a value. |
169 | */ |
170 | void QPlatformNativeInterface::setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value) |
171 | { |
172 | Q_UNUSED(window); |
173 | Q_UNUSED(name); |
174 | Q_UNUSED(value); |
175 | } |
176 | |
177 | QT_END_NAMESPACE |
178 | |