载入中...
搜索中...
未找到
Component.cpp
浏览该文件的文档.
43Component::Component() : schedule_(std::make_shared<detail::ComponentSchedule>()) { schedule_->component = this; }
React-style UI component: implement build(); setState / markDirty schedules one update before UI rend...
Definition Component.h:25
void rebuild(bool forceFull=false)
Compatibility-only synchronous refresh; normal edits use markDirty / setState. @cost Builds the compl...
Definition Component.cpp:65
void markDirty()
Schedule one rebuild; repeated calls before the next preparation phase coalesce. @thread Owner thread...
Definition Component.cpp:45
bool updateIfDirty()
Compatibility-only synchronous update; normal edits are flushed automatically.
Definition Component.cpp:87
Component()
Create an unmounted component; attaching schedules its first update.
Definition Component.cpp:43
UIHostHandle host() const noexcept
Returns the attached host handle, or an empty handle before attach.
Definition Component.h:44
static UIHostHandle createHost(const std::string &name="")
Creates an ECS-owned UI host.
Definition UIHost.cpp:49
static eve::OptionalRef< UIHost > resolve(UIHostHandle handle) noexcept
Resolves a UI host handle with ECS generation checking.
Definition UIHost.cpp:62
static UIHostHandle findHost(const std::string &name)
Lookup by Meta.name across the UIHost View.
Definition UISystem.cpp:1992
void flushPendingComponents()
Flush one batch of live dirty components before host traversal. @thread Owner thread; newly queued ed...
Definition Component.cpp:18
Definition Component.cpp:7
Definition Container.h:602