Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qandroidnativeinterface.cpp
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#include <qpa/qplatformoffscreensurface.h>
5#include <qpa/qplatformintegration.h>
6
7#include <QtGui/qoffscreensurface_platform.h>
8#include <QtGui/private/qguiapplication_p.h>
9
10#include <QtGui/qpa/qplatformscreen_p.h>
11
12QT_BEGIN_NAMESPACE
13
14using namespace QNativeInterface::Private;
15
16/*!
17 \class QNativeInterface::QAndroidOffscreenSurface
18 \since 6.0
19 \brief Native interface to a offscreen surface on Android.
20
21 Accessed through QOffscreenSurface::nativeInterface().
22
23 \inmodule QtGui
24 \inheaderfile QOffscreenSurface
25 \ingroup native-interfaces
26 \ingroup native-interfaces-qoffscreensurface
27*/
28
31
32QOffscreenSurface *QNativeInterface::QAndroidOffscreenSurface::fromNative(ANativeWindow *nativeSurface)
33{
34 return QGuiApplicationPrivate::platformIntegration()->call<
35 &QAndroidOffScreenIntegration::createOffscreenSurface>(nativeSurface);
36}
37
38/*!
39 \class QNativeInterface::QAndroidScreen
40 \since 6.7
41 \brief Native interface to a screen.
42
43 Accessed through QScreen::nativeInterface().
44 \inmodule QtGui
45 \ingroup native-interfaces
46 \ingroup native-interfaces-qscreen
47*/
48/*!
49 \fn int QNativeInterface::QAndroidScreen::displayId() const;
50 \return the id of the underlying Android display.
51*/
53
54QT_END_NAMESPACE
QT_DEFINE_NATIVE_INTERFACE(QAndroidScreen)
QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QAndroidOffScreenIntegration)
QT_DEFINE_NATIVE_INTERFACE(QAndroidOffscreenSurface)