Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qoffscreensurface_platform.h
Go to the documentation of this file.
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
25
26namespace QNativeInterface {
27
28#if defined(Q_OS_ANDROID) || defined(Q_QDOC)
29struct Q_GUI_EXPORT QAndroidOffscreenSurface
30{
32 static QOffscreenSurface *fromNative(ANativeWindow *nativeSurface);
33 virtual ANativeWindow *nativeSurface() const = 0;
34};
35#endif
36
37} // QNativeInterface
38
40
41#endif // QOFFSCREENSURFACE_PLATFORM_H
Native interface to a offscreen surface on Android.
\inmodule QtGui
T fromNative(const T &value, qreal scaleFactor, QPoint origin=QPoint(0, 0))
Combined button and popup list for selecting options.
#define QT_DECLARE_NATIVE_INTERFACE(...)