Rework Project Ultra

- Added container
- Made container the base of Layout
- Set Containers theirself as pParent for Elements on Push
This commit is contained in:
2026-03-29 04:28:45 +02:00
parent 4498c2c0fb
commit b5321ca1a1
10 changed files with 82 additions and 78 deletions
+1 -4
View File
@@ -2,14 +2,11 @@
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->Update(pCanvas);
for (auto& it : GetElements()) {
it->Draw(pList);
}
}