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
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
4
#ifndef QANDROIDPLATFORMFOREIGNWINDOW_H
5
#define QANDROIDPLATFORMFOREIGNWINDOW_H
6
7
#include "
qandroidplatformwindow.h
"
8
9
#include <QtCore/QJniObject>
10
11
QT_BEGIN_NAMESPACE
12
13
Q_DECLARE_JNI_CLASS
(
View
,
"android/view/View"
)
14
15
class
QAndroidPlatformForeignWindow
: public
QAndroidPlatformWindow
16
{
17
public
:
18
explicit
QAndroidPlatformForeignWindow
(
QWindow
*
window
, WId nativeHandle);
19
~QAndroidPlatformForeignWindow
();
20
void
setGeometry(
const
QRect
&
rect
)
override
;
21
void
setVisible(
bool
visible)
override
;
22
void
applicationStateChanged(
Qt::ApplicationState
state
)
override
;
23
bool
isForeignWindow
()
const override
{
return
true
; }
24
25
WId winId()
const override
;
26
27
private
:
28
void
addViewToWindow();
29
30
QtJniTypes::View m_view;
31
bool
m_nativeViewInserted;
32
};
33
34
QT_END_NAMESPACE
35
36
#endif
// QANDROIDPLATFORMFOREIGNWINDOW_H
QAndroidPlatformForeignWindow
Definition
qandroidplatformforeignwindow.h:16
QAndroidPlatformForeignWindow::isForeignWindow
bool isForeignWindow() const override
Definition
qandroidplatformforeignwindow.h:23
QAndroidPlatformWindow
Definition
qandroidplatformwindow.h:27
QRect
\inmodule QtCore\reentrant
Definition
qrect.h:30
QWindow
\inmodule QtGui
Definition
qwindow.h:63
View
[2]
Definition
graphicsview_snippet.cpp:6
rect
rect
[4]
Definition
doc_src_styles.cpp:43
state
else opt state
[0]
Definition
doc_src_styles.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
Qt::ApplicationState
ApplicationState
Definition
qnamespace.h:262
qandroidplatformwindow.h
Q_DECLARE_JNI_CLASS
QT_BEGIN_NAMESPACE Q_DECLARE_JNI_CLASS(Environment, "android/os/Environment")
window
aWidget window() -> setWindowTitle("New Window Title")
[2]
qtbase
src
plugins
platforms
android
qandroidplatformforeignwindow.h
Generated by
1.10.0