1// Copyright (C) 2020 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#ifndef QOFFSCREENSURFACE_PLATFORM_H
5#define QOFFSCREENSURFACE_PLATFORM_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is part of the native interface APIs. Usage of
12// this API may make your code source and binary incompatible
13// with future versions of Qt.
14//
15
16#include <QtGui/qtguiglobal.h>
17#include <QtGui/qoffscreensurface.h>
18#include <QtCore/qnativeinterface.h>
19
20#if defined(Q_OS_ANDROID)
21struct ANativeWindow;
22#endif
23
24QT_BEGIN_NAMESPACE
25
26namespace QNativeInterface {
27
28#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
29struct Q_GUI_EXPORT QAndroidOffscreenSurface
30{
31 QT_DECLARE_NATIVE_INTERFACE(QAndroidOffscreenSurface, 1, QOffscreenSurface)
32 static QOffscreenSurface *fromNative(ANativeWindow *nativeSurface);
33 virtual ANativeWindow *nativeSurface() const = 0;
34};
35#endif
36
37} // QNativeInterface
38
39QT_END_NAMESPACE
40
41#endif // QOFFSCREENSURFACE_PLATFORM_H
42

source code of qtbase/src/gui/kernel/qoffscreensurface_platform.h