Component wrapper that becomes dirty when its bound model changes. 更多...
#include <PropertyView.h>
Public 成员函数 | |
| PropertyComponent (property_access::IPropertyAccess *model=nullptr, PropertyViewOptions options={}) | |
| Property component. | |
| ~PropertyComponent () override=default | |
| Property component. | |
| void | bind (property_access::IPropertyAccess *model) |
| Replace the model and reconnect change observation. | |
| property_access::IPropertyAccess * | model () const |
| Return the currently bound property model, or null when unbound. | |
| void | setOptions (PropertyViewOptions options) |
| Replace generation policy and mark the component dirty. | |
| WidgetDesc | build () override |
| Build the current schema-driven tree. | |
Public 成员函数 继承自 eve::ui::Component | |
| Component () | |
| Create an unmounted component; attaching schedules its first update. | |
| Component (const Component &)=delete | |
| Component & | operator= (const Component &)=delete |
| Component (Component &&)=delete | |
| Component & | operator= (Component &&)=delete |
| virtual | ~Component () |
| Component. | |
| void | attach (UIHostHandle host) |
| Attaches . | |
| void | mountAs (const std::string &hostName) |
| Mounts as. | |
| UIHostHandle | host () const noexcept |
| Returns the attached host handle, or an empty handle before attach. | |
| void | rebuild (bool forceFull=false) |
| Compatibility-only synchronous refresh; normal edits use markDirty / setState. @cost Builds the complete description tree and reconciles by key; call once per edit batch. @reentrancy May invoke build(); recursively rebuilding or destroying this component during build is invalid. | |
| void | markDirty () |
| Schedule one rebuild; repeated calls before the next preparation phase coalesce. @thread Owner thread; no callbacks. Edits during build schedule the following batch. @lifetime Destroying the component invalidates its weak scheduling registration. | |
| bool | isDirty () const |
| True when dirty. | |
| bool | updateIfDirty () |
| Compatibility-only synchronous update; normal edits are flushed automatically. | |
额外继承的成员函数 | |
Protected 成员函数 继承自 eve::ui::Component | |
| void | setState () |
| Subclasses call after mutating local state that affects build(). | |
详细描述
Component wrapper that becomes dirty when its bound model changes.
在文件 PropertyView.h 第 53 行定义.
构造及析构函数说明
◆ PropertyComponent()
|
explicit |
Property component.
在文件 PropertyView.cpp 第 534 行定义.
◆ ~PropertyComponent()
|
overridedefault |
Property component.
成员函数说明
◆ bind()
| void eve::ui::PropertyComponent::bind | ( | property_access::IPropertyAccess * | model | ) |
Replace the model and reconnect change observation.
在文件 PropertyView.cpp 第 539 行定义.
引用了 eve::Subscription::dispose(), eve::ui::Component::markDirty() , 以及 model().
◆ build()
|
overridevirtual |
Build the current schema-driven tree.
实现了 eve::ui::Component.
在文件 PropertyView.cpp 第 551 行定义.
引用了 eve::ui::buildPropertyView(), column , 以及 eve::ui::PropertyViewOptions::idPrefix.
◆ model()
|
inline |
Return the currently bound property model, or null when unbound.
- 返回
- Borrowed nullable model supplied by the caller. @ownership PropertyComponent does not own the model; the caller must keep it alive. @lifetime Valid until bind() replaces it or the model is destroyed; do not retain across frames without external lifetime control. @thread Call on the UI thread. @reentrancy The accessor invokes no callbacks and is invalid across bind/rebuild mutation.
在文件 PropertyView.h 第 71 行定义.
被这些函数引用 bind().
◆ setOptions()
| void eve::ui::PropertyComponent::setOptions | ( | PropertyViewOptions | options | ) |
Replace generation policy and mark the component dirty.
在文件 PropertyView.cpp 第 546 行定义.
引用了 eve::ui::Component::markDirty() , 以及 options.
该类的文档由以下文件生成:
- src/modules/ui/PropertyView.h
- src/modules/ui/PropertyView.cpp
Public 成员函数 继承自