Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qandroidplatformforeignwindow.h
Go to the documentation of this file.
1
// Copyright (C) 2021 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QANDROIDPLATFORMFOREIGNWINDOW_H
6
#
define
QANDROIDPLATFORMFOREIGNWINDOW_H
7
8
#
include
"qandroidplatformwindow.h"
9
10
#
include
<
QtCore
/
QJniObject
>
11
12
QT_BEGIN_NAMESPACE
13
14
Q_DECLARE_JNI_CLASS(View,
"android/view/View"
)
15
16
class
QAndroidPlatformForeignWindow :
public
QAndroidPlatformWindow
17
{
18
public
:
19
explicit
QAndroidPlatformForeignWindow(QWindow *window, WId nativeHandle);
20
void
initialize() override;
21
~QAndroidPlatformForeignWindow();
22
void
setVisible(
bool
visible) override;
23
void
applicationStateChanged(Qt::ApplicationState state) override;
24
bool
isExposed()
const
override;
25
bool
isForeignWindow()
const
override {
return
true
; }
26
27
WId winId()
const
override;
28
29
private
:
30
void
addViewToWindow();
31
32
QtJniTypes::View m_view;
33
bool
m_nativeViewInserted;
34
};
35
36
QT_END_NAMESPACE
37
38
#
endif
// QANDROIDPLATFORMFOREIGNWINDOW_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
android
qandroidplatformforeignwindow.h
Generated on
for Qt by
1.18.0