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
qxcomponentregistry.h
Go to the documentation of this file.
1
// Copyright (C) 2025 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
QXCOMPONENTREGISTRY_H
5
#
define
QXCOMPONENTREGISTRY_H
6
7
#
include
<
QtCore
/
private
/
qnapi_p
.
h
>
8
#
include
<
QtCore
/
private
/
qohoscommon_p
.
h
>
9
#
include
<
QtCore
/
qglobal
.
h
>
10
#
include
<
map
>
11
#
include
<
optional
>
12
#
include
<
render
/
qxcomponent
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
namespace
QArkUi
{
17
18
class
QXComponentRegistry
19
{
20
public
:
21
static
QXComponentRegistry
&
instance
();
22
23
std
::optional<
QXComponentNode
>
tryTakeNodeByXComponentId
(
const
QXComponentId
&id);
24
25
QXComponentRegistry
(
const
QXComponentRegistry
&) =
delete
;
26
QXComponentRegistry
(
QXComponentRegistry
&&) =
delete
;
27
QXComponentRegistry
&
operator
=(
const
QXComponentRegistry
&) =
delete
;
28
QXComponentRegistry
&
operator
=(
QXComponentRegistry
&&) =
delete
;
29
30
static
bool
Init
(napi_env env, napi_value exports);
31
32
private
:
33
QXComponentRegistry() =
default
;
34
35
std::map<QXComponentId, QXComponentNode> m_xComponents;
36
};
37
38
}
39
40
QT_END_NAMESPACE
41
42
#
endif
QArkUi::QXComponentRegistry
Definition
qxcomponentregistry.h:19
QArkUi::QXComponentRegistry::QXComponentRegistry
QXComponentRegistry(QXComponentRegistry &&)=delete
QArkUi::QXComponentRegistry::tryTakeNodeByXComponentId
std::optional< QXComponentNode > tryTakeNodeByXComponentId(const QXComponentId &id)
Definition
qxcomponentregistry.cpp:14
QArkUi::QXComponentRegistry::QXComponentRegistry
QXComponentRegistry(const QXComponentRegistry &)=delete
QArkUi::QXComponentRegistry::operator=
QXComponentRegistry & operator=(QXComponentRegistry &&)=delete
QArkUi::QXComponentRegistry::operator=
QXComponentRegistry & operator=(const QXComponentRegistry &)=delete
QArkUi::QXComponentRegistry::instance
static QXComponentRegistry & instance()
Definition
qxcomponentregistry.cpp:25
QArkUi::QXComponentRegistry::Init
static bool Init(napi_env env, napi_value exports)
Definition
qxcomponentregistry.cpp:31
QXComponentId
Definition
qxcomponent.h:47
QXComponentId::RecognizedType
RecognizedType
Definition
qxcomponent.h:50
QXComponentId::RecognizedType::NativeNodeFloatWindow
@ NativeNodeFloatWindow
Definition
qxcomponent.h:54
QXComponentId::RecognizedType::NativeNodeSubWindow
@ NativeNodeSubWindow
Definition
qxcomponent.h:52
QXComponentId::RecognizedType::RenderXComponent
@ RenderXComponent
Definition
qxcomponent.h:51
QXComponentId::RecognizedType::NativeNodeMainWindow
@ NativeNodeMainWindow
Definition
qxcomponent.h:53
QArkUi
Definition
displaymanager.cpp:17
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
QXComponentNode
QXComponent< QXComponentType::Node > QXComponentNode
Definition
qxcomponent.h:44
qtbase
src
plugins
platforms
ohos
qarkui
qxcomponentregistry.h
Generated on
for Qt by
1.18.0