WIP (Codename Ultra) UI lib

This commit is contained in:
2026-09-06 15:58:12 +02:00
committed by tobid7
parent bef8ced350
commit ce2dc94121
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