| Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/gui/kernel/qplatformnativeinterface.cpp |
| Source code | Switch to Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | /**************************************************************************** | - |
| 2 | ** | - |
| 3 | ** Copyright (C) 2015 The Qt Company Ltd. | - |
| 4 | ** Contact: http://www.qt.io/licensing/ | - |
| 5 | ** | - |
| 6 | ** This file is part of the QtGui module of the Qt Toolkit. | - |
| 7 | ** | - |
| 8 | ** $QT_BEGIN_LICENSE:LGPL21$ | - |
| 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 http://www.qt.io/terms-conditions. For further | - |
| 15 | ** information use the contact form at http://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 2.1 or version 3 as published by the Free | - |
| 20 | ** Software Foundation and appearing in the file LICENSE.LGPLv21 and | - |
| 21 | ** LICENSE.LGPLv3 included in the packaging of this file. Please review the | - |
| 22 | ** following information to ensure the GNU Lesser General Public License | - |
| 23 | ** requirements will be met: https://www.gnu.org/licenses/lgpl.html and | - |
| 24 | ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | - |
| 25 | ** | - |
| 26 | ** As a special exception, The Qt Company gives you certain additional | - |
| 27 | ** rights. These rights are described in The Qt Company LGPL Exception | - |
| 28 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | - |
| 29 | ** | - |
| 30 | ** $QT_END_LICENSE$ | - |
| 31 | ** | - |
| 32 | ****************************************************************************/ | - |
| 33 | - | |
| 34 | #include "qplatformnativeinterface.h" | - |
| 35 | - | |
| 36 | QT_BEGIN_NAMESPACE | - |
| 37 | - | |
| 38 | /*! | - |
| 39 | \class QPlatformNativeInterface | - |
| 40 | \since 5.0 | - |
| 41 | \internal | - |
| 42 | \preliminary | - |
| 43 | \ingroup qpa | - |
| 44 | - | |
| 45 | \brief The QPlatformNativeInterface class provides an abstraction for retrieving native | - |
| 46 | resource handles. | - |
| 47 | */ | - |
| 48 | - | |
| 49 | void *QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource) | - |
| 50 | { | - |
| 51 | Q_UNUSED(resource); | - |
| 52 | return 0; never executed: return 0; | 0 |
| 53 | } | - |
| 54 | - | |
| 55 | void *QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen) | - |
| 56 | { | - |
| 57 | Q_UNUSED(resource); | - |
| 58 | Q_UNUSED(screen); | - |
| 59 | return 0; never executed: return 0; | 0 |
| 60 | } | - |
| 61 | - | |
| 62 | void *QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window) | - |
| 63 | { | - |
| 64 | Q_UNUSED(resource); | - |
| 65 | Q_UNUSED(window); | - |
| 66 | return 0; never executed: return 0; | 0 |
| 67 | } | - |
| 68 | - | |
| 69 | void *QPlatformNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) | - |
| 70 | { | - |
| 71 | Q_UNUSED(resource); | - |
| 72 | Q_UNUSED(context); | - |
| 73 | return 0; never executed: return 0; | 0 |
| 74 | } | - |
| 75 | - | |
| 76 | void * QPlatformNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore) | - |
| 77 | { | - |
| 78 | Q_UNUSED(resource); | - |
| 79 | Q_UNUSED(backingStore); | - |
| 80 | return 0; never executed: return 0; | 0 |
| 81 | } | - |
| 82 | - | |
| 83 | QPlatformNativeInterface::NativeResourceForIntegrationFunction QPlatformNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource) | - |
| 84 | { | - |
| 85 | Q_UNUSED(resource); | - |
| 86 | return 0; never executed: return 0; | 0 |
| 87 | } | - |
| 88 | - | |
| 89 | QPlatformNativeInterface::NativeResourceForContextFunction QPlatformNativeInterface::nativeResourceFunctionForContext(const QByteArray &resource) | - |
| 90 | { | - |
| 91 | Q_UNUSED(resource); | - |
| 92 | return 0; never executed: return 0; | 0 |
| 93 | } | - |
| 94 | - | |
| 95 | QPlatformNativeInterface::NativeResourceForScreenFunction QPlatformNativeInterface::nativeResourceFunctionForScreen(const QByteArray &resource) | - |
| 96 | { | - |
| 97 | Q_UNUSED(resource); | - |
| 98 | return 0; never executed: return 0; | 0 |
| 99 | } | - |
| 100 | - | |
| 101 | QPlatformNativeInterface::NativeResourceForWindowFunction QPlatformNativeInterface::nativeResourceFunctionForWindow(const QByteArray &resource) | - |
| 102 | { | - |
| 103 | Q_UNUSED(resource); | - |
| 104 | return 0; never executed: return 0; | 0 |
| 105 | } | - |
| 106 | - | |
| 107 | QPlatformNativeInterface::NativeResourceForBackingStoreFunction QPlatformNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource) | - |
| 108 | { | - |
| 109 | Q_UNUSED(resource); | - |
| 110 | return 0; never executed: return 0; | 0 |
| 111 | } | - |
| 112 | - | |
| 113 | QFunctionPointer QPlatformNativeInterface::platformFunction(const QByteArray &function) const | - |
| 114 | { | - |
| 115 | Q_UNUSED(function); | - |
| 116 | return Q_NULLPTR; never executed: return nullptr; | 0 |
| 117 | } | - |
| 118 | - | |
| 119 | /*! | - |
| 120 | Contains generic window properties that the platform may utilize. | - |
| 121 | */ | - |
| 122 | QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window) const | - |
| 123 | { | - |
| 124 | Q_UNUSED(window) | - |
| 125 | return QVariantMap(); never executed: return QVariantMap(); | 0 |
| 126 | } | - |
| 127 | - | |
| 128 | /*! | - |
| 129 | Returns a window property with \a name. | - |
| 130 | - | |
| 131 | If the property does not exist, returns a default-constructed value. | - |
| 132 | */ | - |
| 133 | QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name) const | - |
| 134 | { | - |
| 135 | Q_UNUSED(window); | - |
| 136 | Q_UNUSED(name); | - |
| 137 | return QVariant(); never executed: return QVariant(); | 0 |
| 138 | } | - |
| 139 | - | |
| 140 | /*! | - |
| 141 | Returns a window property with \a name. If the value does not exist, defaultValue is returned. | - |
| 142 | */ | - |
| 143 | QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window, const QString &name, const QVariant &defaultValue) const | - |
| 144 | { | - |
| 145 | Q_UNUSED(window); | - |
| 146 | Q_UNUSED(name); | - |
| 147 | Q_UNUSED(defaultValue); | - |
| 148 | return QVariant(); never executed: return QVariant(); | 0 |
| 149 | } | - |
| 150 | - | |
| 151 | /*! | - |
| 152 | Sets a window property with \a name to \a value. | - |
| 153 | */ | - |
| 154 | void QPlatformNativeInterface::setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value) | - |
| 155 | { | - |
| 156 | Q_UNUSED(window); | - |
| 157 | Q_UNUSED(name); | - |
| 158 | Q_UNUSED(value); | - |
| 159 | } never executed: end of block | 0 |
| 160 | - | |
| 161 | QT_END_NAMESPACE | - |
| Source code | Switch to Preprocessed file |