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
+10
View File
@@ -0,0 +1,10 @@
#include <pd/ultra/elems/rect.hpp>
namespace PD {
namespace Ultra {
PD_API void Rect::Draw(PD::Li::Drawlist& l) {
l.PathRect(pPos, pPos + pSize, pRounding);
l.PathFill(pColor);
}
} // namespace Ultra
} // namespace PD
+9
View File
@@ -0,0 +1,9 @@
#include <pd/ultra/elems/text.hpp>
namespace PD {
namespace Ultra {
PD_API void Text::Draw(PD::Li::Drawlist& l) {
l.DrawText(pPos, pText.c_str(), pColor);
}
} // namespace Ultra
} // namespace PD