载入中...
搜索中...
未找到
Component.h
浏览该文件的文档.
React-style UI component: implement build(), call setState / markDirty, then rebuild()....
Definition Component.h:15
virtual WidgetDesc build()=0
virtual ~Component()=default
void rebuild(bool forceFull=false)
Rebuild tree onto host (reconcile by key when possible).
Definition Component.cpp:19
void setState()
Subclasses call after mutating local state that affects build().
Definition Component.h:36
bool updateIfDirty()
If dirty, rebuild and clear flag. Returns true if rebuilt.
Definition Component.cpp:27
ECS mount point for one UI panel/screen. Subclass to attach UI to game entities, e....
Definition UIHost.h:130
Definition Component.cpp:5
Declarative widget description (build once / on dirty → flatten into UIHost::Tree).
Definition Widget.h:13