载入中...
搜索中...
未找到
eve::ui_editing::UiThemeRuntimePublisher类 参考
Publishes the active catalog theme through ui::setGlobalTheme. 更多...
#include <UiTheme.h>
Public 成员函数 | |
| Result< void > | publish (const UiThemeCatalogTarget &catalog) const |
| Replace the process global theme with the catalog's active asset. | |
详细描述
Publishes the active catalog theme through ui::setGlobalTheme.
成员函数说明
◆ publish()
| Result< void > eve::ui_editing::UiThemeRuntimePublisher::publish | ( | const UiThemeCatalogTarget & | catalog | ) | const |
Replace the process global theme with the catalog's active asset.
- 备注
- Does not mutate the catalog. Failed validation leaves globalTheme unchanged.
在文件 UiThemePreview.cpp 第 40 行定义.
引用了 eve::ui_editing::UiThemeCatalogTarget::activeId(), eve::Result< T >::failure(), eve::ui_editing::UiThemeCatalogTarget::runtimeName(), eve::ui::setGlobalTheme(), eve::ui_editing::UiThemeCatalogTarget::theme() , 以及 eve::ui_editing::validateThemeTokens().
该类的文档由以下文件生成:
- src/modules/ui/editing/UiTheme.h
- src/modules/ui/editing/UiThemePreview.cpp