Shared presenter logic that exposes only runtime-safe property rows. 更多...
#include <EditorPropertyPresenter.h>
Public 成员函数 | |
| PropertyPresentation | present (const PropertySchema &schema, const SelectionSnapshot &selection, const IPropertyProvider &provider, const HostProfile &profile) const |
| Read properties marked Runtime and not marked EditorOnly. | |
| Result< PropertyEditIntent > | editIntent (const PropertySchema &schema, const SelectionSnapshot &selection, const PropertyPath &path, const EditorValue &value, const HostProfile &profile, PropertySetMode mode=PropertySetMode::Absolute) const |
| Validate a runtime-visible candidate and emit the same command payload as developer UI. | |
详细描述
Shared presenter logic that exposes only runtime-safe property rows.
在文件 EditorPropertyPresenter.h 第 44 行定义.
成员函数说明
◆ editIntent()
| Result< PropertyEditIntent > eve::editor::RuntimePropertyPresenter::editIntent | ( | const PropertySchema & | schema, |
| const SelectionSnapshot & | selection, | ||
| const PropertyPath & | path, | ||
| const EditorValue & | value, | ||
| const HostProfile & | profile, | ||
| PropertySetMode | mode = PropertySetMode::Absolute |
||
| ) | const |
Validate a runtime-visible candidate and emit the same command payload as developer UI.
在文件 EditorPropertyPresenter.cpp 第 78 行定义.
引用了 eve::editor::HostProfile::hasFeatures(), path , 以及 value.
◆ present()
| PropertyPresentation eve::editor::RuntimePropertyPresenter::present | ( | const PropertySchema & | schema, |
| const SelectionSnapshot & | selection, | ||
| const IPropertyProvider & | provider, | ||
| const HostProfile & | profile | ||
| ) | const |
Read properties marked Runtime and not marked EditorOnly.
在文件 EditorPropertyPresenter.cpp 第 62 行定义.
引用了 descriptor, eve::editor::HostProfile::hasFeatures(), eve::editing::PropertySchema::properties, eve::editing::IPropertyProvider::read(), eve::editor::PropertyPresentation::rows, eve::editor::PropertyPresentation::schemaVersion, eve::editing::PropertySchema::typeId, eve::editor::PropertyPresentation::typeId , 以及 eve::editing::PropertySchema::version.
该类的文档由以下文件生成:
- src/modules/editor/EditorPropertyPresenter.h
- src/modules/editor/EditorPropertyPresenter.cpp