载入中...
搜索中...
未找到
PropertyView.h
浏览该文件的文档.
49EVENGINE_API_WORLD void syncPropertyView(UIHost &host, const property_access::IPropertyAccess &model,
56 explicit PropertyComponent(property_access::IPropertyAccess *model = nullptr, PropertyViewOptions options = {});
Move-only RAII token that owns one observer registration.
Definition Subscription.h:27
Renderer- and transaction-independent MVVM property surface.
Definition PropertyAccess.h:151
React-style UI component: implement build(), call setState / markDirty, then rebuild()....
Definition Component.h:17
Component wrapper that becomes dirty when its bound model changes.
Definition PropertyView.h:53
property_access::IPropertyAccess * model() const
Return the currently bound property model, or null when unbound.
Definition PropertyView.h:71
~PropertyComponent() override=default
Property component.
Definition Component.cpp:5
WidgetDesc buildPropertyView(property_access::IPropertyAccess &model, const PropertyViewOptions &options)
Generate a declarative, two-way property view from any model schema.
Definition PropertyView.cpp:431
std::string propertyWidgetId(const PropertyViewOptions &options, const std::string &path)
Return the stable widget id generated for a property path.
Definition PropertyView.cpp:415
WidgetDesc buildPropertyField(property_access::IPropertyAccess &model, const std::string &path, const PropertyViewOptions &options)
Generate one field from a model property, or a diagnostic text row.
Definition PropertyView.cpp:419
void syncPropertyView(UIHost &host, const property_access::IPropertyAccess &model, const PropertyViewOptions &options)
Pull current model values into an existing compatible UI tree.
Definition PropertyView.cpp:449
Policy controlling schema-to-widget generation for a UI shell.
Definition PropertyView.h:14
std::function< void()> onStructureChange
Optional callback after Array/Map structural mutations (append/remove).
Definition PropertyView.h:28
Declarative widget description (build once / on dirty → flatten into UIHost::Tree).
Definition Widget.h:15