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
androidwindowembedding.h
Go to the documentation of this file.
1// Copyright (C) 2023 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 QTANDROIDWINDOWEMBEDDING_H
5#define QTANDROIDWINDOWEMBEDDING_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qjnienvironment.h>
19#include <QtCore/qjnitypes.h>
20
22
23Q_DECLARE_JNI_CLASS(View, "android/view/View");
24
26{
28 void createRootWindow(JNIEnv *, jclass, QtJniTypes::View rootView,
29 jint x, jint y,jint width, jint height);
30 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(createRootWindow)
31 void deleteWindow(JNIEnv *, jclass, jlong window);
32 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(deleteWindow)
33 void setWindowVisible(JNIEnv *, jclass, jlong window, jboolean visible);
34 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(setWindowVisible)
35 void resizeWindow(JNIEnv *, jclass, jlong windowRef, jint x, jint y, jint width, jint height);
36 Q_DECLARE_JNI_NATIVE_METHOD_IN_CURRENT_SCOPE(resizeWindow)
37};
38
40
41#endif // QTANDROIDWINDOWEMBEDDING_H
QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS(View, "android/view/View")
\inmodule QtCore
static bool registerNatives()
Combined button and popup list for selecting options.
void setWindowVisible(JNIEnv *, jclass, jlong windowRef, jboolean visible)
void createRootWindow(JNIEnv *, jclass, QtJniTypes::View rootView, jint x, jint y, jint width, jint height)
void resizeWindow(JNIEnv *, jclass, jlong windowRef, jint x, jint y, jint width, jint height)
void deleteWindow(JNIEnv *, jclass, jlong windowRef)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLint GLsizei width
GLint y
aWidget window() -> setWindowTitle("New Window Title")
[2]