Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtGui/qoffscreensurface_platform.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2020 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #ifndef QOFFSCREENSURFACE_PLATFORM_H
0005 #define QOFFSCREENSURFACE_PLATFORM_H
0006 
0007 //
0008 //  W A R N I N G
0009 //  -------------
0010 //
0011 // This file is part of the native interface APIs. Usage of
0012 // this API may make your code source and binary incompatible
0013 // with future versions of Qt.
0014 //
0015 
0016 #include <QtGui/qtguiglobal.h>
0017 #include <QtGui/qoffscreensurface.h>
0018 #include <QtCore/qnativeinterface.h>
0019 
0020 #if defined(Q_OS_ANDROID)
0021 struct ANativeWindow;
0022 #endif
0023 
0024 QT_BEGIN_NAMESPACE
0025 
0026 namespace QNativeInterface {
0027 
0028 #if defined(Q_OS_ANDROID) || defined(Q_QDOC)
0029 struct Q_GUI_EXPORT QAndroidOffscreenSurface
0030 {
0031     QT_DECLARE_NATIVE_INTERFACE(QAndroidOffscreenSurface, 1, QOffscreenSurface)
0032     static QOffscreenSurface *fromNative(ANativeWindow *nativeSurface);
0033     virtual ANativeWindow *nativeSurface() const = 0;
0034 };
0035 #endif
0036 
0037 } // QNativeInterface
0038 
0039 QT_END_NAMESPACE
0040 
0041 #endif // QOFFSCREENSURFACE_PLATFORM_H