2026-03-26 21:02:10 +01:00
|
|
|
#include <pd/ultra/layout.hpp>
|
|
|
|
|
|
|
|
|
|
namespace PD {
|
|
|
|
|
namespace Ultra {
|
|
|
|
|
PD_API void Layout::Add(ElementBase& elem) { *pElements.Allocate() = &elem; }
|
|
|
|
|
|
|
|
|
|
PD_API void Layout::SetFont(PD::Li::Font& font) { pList.SetFont(&font); }
|
|
|
|
|
|
|
|
|
|
PD_API void Layout::Render() {
|
|
|
|
|
pList.Clear();
|
|
|
|
|
for (auto& it : pElements) {
|
2026-03-28 13:52:36 +01:00
|
|
|
it->Update(pCanvas);
|
2026-03-26 21:02:10 +01:00
|
|
|
it->Draw(pList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} // namespace Ultra
|
|
|
|
|
} // namespace PD
|