summaryrefslogtreecommitdiffstats
path: root/src/gui/platform/android
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-14 12:20:38 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-10-18 13:31:09 +0200
commit40e6fe780150161bb608f5df356bfe4f00861be5 (patch)
tree97749eb338e4365656d65da8bc1168570e9ca96d /src/gui/platform/android
parent1f66d914e435e733a7741e6b98abf92594122c01 (diff)
doc: Update and flesh out native interface docs
The namespace and overviews are in the qtdoc repository. Docs for individual interfaces should live with their platform. Change-Id: Iba5fd7e9ebc4f1f634ec9dc3ec125ce88a1312ba Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/gui/platform/android')
-rw-r--r--src/gui/platform/android/qandroidnativeinterface.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gui/platform/android/qandroidnativeinterface.cpp b/src/gui/platform/android/qandroidnativeinterface.cpp
index bdb322add0..b1063034a0 100644
--- a/src/gui/platform/android/qandroidnativeinterface.cpp
+++ b/src/gui/platform/android/qandroidnativeinterface.cpp
@@ -47,7 +47,19 @@ QT_BEGIN_NAMESPACE
using namespace QNativeInterface::Private;
-#if defined(Q_OS_ANDROID)
+/*!
+ \class QNativeInterface::QAndroidOffscreenSurface
+ \since 6.0
+ \brief Native interface to a offscreen surface on Android.
+
+ Accessed through QOffscreenSurface::nativeInterface().
+
+ \inmodule QtGui
+ \inheaderfile QOffscreenSurface
+ \ingroup native-interfaces
+ \ingroup native-interfaces-qoffscreensurface
+*/
+
QT_DEFINE_NATIVE_INTERFACE(QAndroidOffscreenSurface, QOffscreenSurface);
QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QAndroidOffScreenIntegration);
@@ -56,6 +68,5 @@ QOffscreenSurface *QNativeInterface::QAndroidOffscreenSurface::fromNative(ANati
return QGuiApplicationPrivate::platformIntegration()->call<
&QAndroidOffScreenIntegration::createOffscreenSurface>(nativeSurface);
}
-#endif
QT_END_NAMESPACE