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
4#pragma once
5
6#include <QtCore/QByteArray>
7#include <QtGui/qpa/qplatformnativeinterface.h>
8
9#include "qxcbexport.h"
10
11QT_BEGIN_NAMESPACE
12
13class QXcbNativeInterface;
14class Q_XCB_EXPORT QXcbNativeInterfaceHandler
15{
16public:
17 QXcbNativeInterfaceHandler(QXcbNativeInterface *nativeInterface);
18 virtual ~QXcbNativeInterfaceHandler();
19
20 virtual QPlatformNativeInterface::NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) const;
21 virtual QPlatformNativeInterface::NativeResourceForContextFunction nativeResourceFunctionForContext(const QByteArray &resource) const;
22 virtual QPlatformNativeInterface::NativeResourceForScreenFunction nativeResourceFunctionForScreen(const QByteArray &resource) const;
23 virtual QPlatformNativeInterface::NativeResourceForWindowFunction nativeResourceFunctionForWindow(const QByteArray &resource) const;
24 virtual QPlatformNativeInterface::NativeResourceForBackingStoreFunction nativeResourceFunctionForBackingStore(const QByteArray &resource) const;
25
26 virtual QFunctionPointer platformFunction(const QByteArray &function) const;
27protected:
28 QXcbNativeInterface *m_native_interface;
29};
30
31QT_END_NAMESPACE
32

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

source code of qtbase/src/plugins/platforms/xcb/gl_integrations/qxcbnativeinterfacehandler.h