Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 <qohosplugincore.h>
12#include <render/qxcomponent.h>
13
15
16namespace QArkUi {
17
19{
20public:
22
24
29
30 static bool Init(napi_env env, napi_value exports);
31
32private:
33 QXComponentRegistry() = default;
34
35 std::map<QXComponentId, QXComponentNode> m_xComponents;
36};
37
38}
39
40QT_END_NAMESPACE
41
42#endif
QXComponentRegistry(QXComponentRegistry &&)=delete
QXComponentRegistry(const QXComponentRegistry &)=delete
QXComponentRegistry & operator=(QXComponentRegistry &&)=delete
QXComponentRegistry & operator=(const QXComponentRegistry &)=delete
static QXComponentRegistry & instance()
static bool Init(napi_env env, napi_value exports)
QOhosOptional< QXComponentNode > tryTakeNodeByXComponentId(const QXComponentId &id)
std::enable_if_t< qohosplugincore_h_detail::isQOhosOptional< QOhosInvokeResult< Func, T > >, QOhosInvokeResult< Func, T > > andThen(Func &&func) const
Combined button and popup list for selecting options.
QXComponent< QXComponentType::Node > QXComponentNode
Definition qxcomponent.h:44