WIP (Codename Ultra) UI lib

This commit is contained in:
2026-03-26 21:02:10 +01:00
parent bc06a3fee8
commit 784421fa6c
11 changed files with 331 additions and 14 deletions
+16
View File
@@ -0,0 +1,16 @@
#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) {
it->Draw(pList);
}
}
} // namespace Ultra
} // namespace PD