Qt 6.x
The Qt SDK
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
13
14using namespace QNativeInterface::Private;
15
30QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QAndroidOffScreenIntegration);
31
32QOffscreenSurface *QNativeInterface::QAndroidOffscreenSurface::fromNative(ANativeWindow *nativeSurface)
33{
35 &QAndroidOffScreenIntegration::createOffscreenSurface>(nativeSurface);
36}
37
39
static QPlatformIntegration * platformIntegration()
Native interface to a offscreen surface on Android.
\inmodule QtGui
Combined button and popup list for selecting options.
#define QT_DEFINE_PRIVATE_NATIVE_INTERFACE(...)
#define QT_DEFINE_NATIVE_INTERFACE(...)