#include "UiComponent.hpp" #include "UiDebugBounds.hpp" namespace jdi { // 默认实现放在 .cpp 而不是头文件内联:`UiComponent.hpp` 是四个大组件都要包含的 // 公共头,不应把 `UiDebugBounds.hpp`(box 收集器)也拉进它们的编译单元。 void UiComponent::CollectDebugBoxes(UiDebugBoxList& boxes) { boxes.Add(Area(), 0); } } // namespace jdi