载入中...
搜索中...
未找到
eve::ui_editing::UiDocumentRuntimeBridge类 参考

Optional bridge publishing a UI document into a real runtime UIHost. 更多...

#include <UiDocument.h>

Public 成员函数

Result< void > publish (const UiDocumentTarget &document, const ObjectId &root, ui::UIHost *host, const UiTextureResolver &textures={}) const
 Reconciles a document subtree atomically; unsupported content leaves the host unchanged. @ownership Borrows host only for this call; the UI ECS owns it. @lifetime Host must remain live during publication; no pointer is retained. @thread UI thread. @reentrancy Calls the optional resolver once per distinct asset key before changing the tree. @cost Builds descriptions proportional to subtree size; publish only when the document changes.
 

详细描述

Optional bridge publishing a UI document into a real runtime UIHost.

在文件 UiDocument.h 第 282 行定义.

成员函数说明

◆ publish()

Result< void > eve::ui_editing::UiDocumentRuntimeBridge::publish ( const UiDocumentTarget &  document,
const ObjectId &  root,
ui::UIHost *  host,
const UiTextureResolver &  textures = {} 
) const

Reconciles a document subtree atomically; unsupported content leaves the host unchanged. @ownership Borrows host only for this call; the UI ECS owns it. @lifetime Host must remain live during publication; no pointer is retained. @thread UI thread. @reentrancy Calls the optional resolver once per distinct asset key before changing the tree. @cost Builds descriptions proportional to subtree size; publish only when the document changes.

在文件 UiRuntime.cpp 第 142 行定义.

引用了 eve::Result< T >::failure(), host, root , 以及 value.


该类的文档由以下文件生成: