summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformnativeinterface.cpp
blob: d010f0b7c672c6dee588ad6fb8f87a96071e7e6b (plain)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
// Copyright (C) 2016 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only#include"qplatformnativeinterface.h"#include <QtCore/qvariant.h>#include <QtCore/qmap.h>#include <QtGui/qcursor.h> QT_BEGIN_NAMESPACE /*! \class QPlatformNativeInterface \since 5.0 \internal \preliminary \ingroup qpa \brief The QPlatformNativeInterface class provides an abstraction for retrieving native resource handles. */void*QPlatformNativeInterface::nativeResourceForIntegration(const QByteArray &resource){Q_UNUSED(resource);returnnullptr;}void*QPlatformNativeInterface::nativeResourceForScreen(const QByteArray &resource, QScreen *screen){Q_UNUSED(resource);Q_UNUSED(screen);returnnullptr;}void*QPlatformNativeInterface::nativeResourceForWindow(const QByteArray &resource, QWindow *window){Q_UNUSED(resource);Q_UNUSED(window);returnnullptr;}void*QPlatformNativeInterface::nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context){Q_UNUSED(resource);Q_UNUSED(context);returnnullptr;}void*QPlatformNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *backingStore){Q_UNUSED(resource);Q_UNUSED(backingStore);returnnullptr;}#ifndef QT_NO_CURSORvoid*QPlatformNativeInterface::nativeResourceForCursor(const QByteArray &resource,const QCursor &cursor){Q_UNUSED(resource);Q_UNUSED(cursor);returnnullptr;}#endif// !QT_NO_CURSORQPlatformNativeInterface::NativeResourceForIntegrationFunction QPlatformNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource){Q_UNUSED(resource);returnnullptr;}QPlatformNativeInterface::NativeResourceForContextFunction QPlatformNativeInterface::nativeResourceFunctionForContext(const QByteArray &resource){Q_UNUSED(resource);returnnullptr;}QPlatformNativeInterface::NativeResourceForScreenFunction QPlatformNativeInterface::nativeResourceFunctionForScreen(const QByteArray &resource){Q_UNUSED(resource);returnnullptr;}QPlatformNativeInterface::NativeResourceForWindowFunction QPlatformNativeInterface::nativeResourceFunctionForWindow(const QByteArray &resource){Q_UNUSED(resource);returnnullptr;}QPlatformNativeInterface::NativeResourceForBackingStoreFunction QPlatformNativeInterface::nativeResourceFunctionForBackingStore(const QByteArray &resource){Q_UNUSED(resource);returnnullptr;} QFunctionPointer QPlatformNativeInterface::platformFunction(const QByteArray &function)const{Q_UNUSED(function);returnnullptr;}/*! Contains generic window properties that the platform may utilize.*/ QVariantMap QPlatformNativeInterface::windowProperties(QPlatformWindow *window)const{Q_UNUSED(window);returnQVariantMap();}/*! Returns a window property with \a name. If the property does not exist, returns a default-constructed value.*/ QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window,const QString &name)const{Q_UNUSED(window);Q_UNUSED(name);returnQVariant();}/*! Returns a window property with \a name. If the value does not exist, defaultValue is returned.*/ QVariant QPlatformNativeInterface::windowProperty(QPlatformWindow *window,const QString &name,const QVariant &defaultValue)const{Q_UNUSED(window);Q_UNUSED(name);Q_UNUSED(defaultValue);returnQVariant();}/*! Sets a window property with \a name to \a value.*/voidQPlatformNativeInterface::setWindowProperty(QPlatformWindow *window,const QString &name,const QVariant &value){Q_UNUSED(window);Q_UNUSED(name);Q_UNUSED(value);} QT_END_NAMESPACE #include"moc_qplatformnativeinterface.cpp"
close