qplatformnativeinterface.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformnativeinterface.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
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-
42QT_BEGIN_NAMESPACE-
43-
44/*!-
45 \class QPlatformNativeInterface-
46 \since 5.0-
47 \internal-
48 \preliminary-
49 \ingroup qpa-
50-
51 \brief The QPlatformNativeInterface class provides an abstraction for retrieving native-
52 resource handles.-
53 */-
54-
55void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource)-
56{-
57 Q_UNUSED(resource);-
58 return 0;
never executed: return 0;
0
59}-
60-
61void *QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen)-
62{-
63 Q_UNUSED(resource);-
64 Q_UNUSED(screen);-
65 return 0;
never executed: return 0;
0
66}-
67-
68void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window)-
69{-
70 Q_UNUSED(resource);-
71 Q_UNUSED(window);-
72 return 0;
never executed: return 0;
0
73}-
74-
75void *QPlatformNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context)-
76{-
77 Q_UNUSED(resource);-
78 Q_UNUSED(context);-
79 return 0;
never executed: return 0;
0
80}-
81-
82void * QPlatformNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore)-
83{-
84 Q_UNUSED(resource);-
85 Q_UNUSED(backingStore);-
86 return 0;
never executed: return 0;
0
87}-
88-
89#ifndef QT_NO_CURSOR-
90void *QPlatformNativeInterface::nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor)-
91{-
92 Q_UNUSED(resource);-
93 Q_UNUSED(cursor);-
94 return Q_NULLPTR;
never executed: return nullptr;
0
95}-
96#endif // !QT_NO_CURSOR-
97-
98QPlatformNativeInterface::NativeResourceForIntegrationFunction QPlatformNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource)-
99{-
100 Q_UNUSED(resource);-
101 return 0;
never executed: return 0;
0
102}-
103-
104QPlatformNativeInterface::NativeResourceForContextFunction QPlatformNativeInterface::nativeResourceFunctionForContext(const QByteArray &resource)-
105{-
106 Q_UNUSED(resource);-
107 return 0;
never executed: return 0;
0
108}-
109-
110QPlatformNativeInterface::NativeResourceForScreenFunction QPlatformNativeInterface::nativeResourceFunctionForScreen(const QByteArray &resource)-
111{-
112 Q_UNUSED(resource);-
113 return 0;
never executed: return 0;
0
114}-
115-
116QPlatformNativeInterface::NativeResourceForWindowFunction QPlatformNativeInterface::nativeResourceFunctionForWindow(const QByteArray &resource)-
117{-
118 Q_UNUSED(resource);-
119 return 0;
never executed: return 0;
0
120}-
121-
122QPlatformNativeInterface::NativeResourceForBackingStoreFunction QPlatformNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource)-
123{-
124 Q_UNUSED(resource);-
125 return 0;
never executed: return 0;
0
126}-
127-
128QFunctionPointer QPlatformNativeInterface::platformFunction(const QByteArray &function) const-
129{-
130 Q_UNUSED(function);-
131 return Q_NULLPTR;
never executed: return nullptr;
0
132}-
133-
134/*!-
135 Contains generic window properties that the platform may utilize.-
136*/-
137QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window) const-
138{-
139 Q_UNUSED(window)-
140 return QVariantMap();
never executed: return QVariantMap();
0
141}-
142-
143/*!-
144 Returns a window property with \a name.-
145-
146 If the property does not exist, returns a default-constructed value.-
147*/-
148QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name) const-
149{-
150 Q_UNUSED(window);-
151 Q_UNUSED(name);-
152 return QVariant();
never executed: return QVariant();
0
153}-
154-
155/*!-
156 Returns a window property with \a name. If the value does not exist, defaultValue is returned.-
157*/-
158QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name, const QVariant &defaultValue) const-
159{-
160 Q_UNUSED(window);-
161 Q_UNUSED(name);-
162 Q_UNUSED(defaultValue);-
163 return QVariant();
never executed: return QVariant();
0
164}-
165-
166/*!-
167 Sets a window property with \a name to \a value.-
168*/-
169void QPlatformNativeInterface::setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value)-
170{-
171 Q_UNUSED(window);-
172 Q_UNUSED(name);-
173 Q_UNUSED(value);-
174}
never executed: end of block
0
175-
176QT_END_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9