diff options
| author | David Redondo <qt@david-redondo.de> | 2023-12-04 11:47:19 +0100 |
|---|---|---|
| committer | David Redondo <qt@david-redondo.de> | 2023-12-08 14:53:37 +0100 |
| commit | 706dafe347528dbcbaaf3b4d75fa78bd633d876b (patch) | |
| tree | ea9a39483e4fe69dc2d5fbff26a719733d064de6 /src/gui/platform/android/qandroidnativeinterface.cpp | |
| parent | 1c42b1e8c754b45dfa9e183ae37a3bc823f82463 (diff) | |
Make some QScreen native interfaces public
[ChangeLog][QtGui][QScreen] The QAndroidScreen, QWaylandScreen and
QWaylandWindow native interfaces are now available on QScreen to
provide a handle to the underlying platform screen.
Task-number: QTBUG-113795
Change-Id: I83d70046678dfb79ee08544ddfc1820f3ff2d118
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/platform/android/qandroidnativeinterface.cpp')
| -rw-r--r-- | src/gui/platform/android/qandroidnativeinterface.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/gui/platform/android/qandroidnativeinterface.cpp b/src/gui/platform/android/qandroidnativeinterface.cpp index 1bc718cbf18..b20df90a077 100644 --- a/src/gui/platform/android/qandroidnativeinterface.cpp +++ b/src/gui/platform/android/qandroidnativeinterface.cpp @@ -35,6 +35,20 @@ QOffscreenSurface *QNativeInterface::QAndroidOffscreenSurface::fromNative(ANati &QAndroidOffScreenIntegration::createOffscreenSurface>(nativeSurface); } -QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QAndroidScreen); +/*! + \class QNativeInterface::QAndroidScreen + \since 6.7 + \brief Native interface to a screen. + + Accessed through QScreen::nativeInterface(). + \inmodule QtGui + \ingroup native-interfaces + \ingroup native-interfaces-qscreen +*/ +/*! + \fn int QNativeInterface::QAndroidScreen::displayId() const; + \return The Id of the underlying Android display. +*/ +QT_DEFINE_NATIVE_INTERFACE(QAndroidScreen); QT_END_NAMESPACE |
