4#ifndef QXCOMPONENTREGISTRY_H
5#define QXCOMPONENTREGISTRY_H
7#include <QtCore/private/qnapi_p.h>
8#include <QtCore/private/qohoscommon_p.h>
9#include <QtCore/qglobal.h>
11#include <qohosplugincore.h>
12#include <render/qxcomponent.h>
30 static bool Init(napi_env env, napi_value exports);
33 QXComponentRegistry() =
default;
35 std::map<QXComponentId, QXComponentNode> m_xComponents;
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