Files
palladium/source/ultra/elems/rect.cpp
T
tobid7 80403d7ef0 Rework Project Ultra
- Added container
- Made container the base of Layout
- Set Containers theirself as pParent for Elements on Push
2026-09-06 16:16:35 +02:00

14 lines
314 B
C++

#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);
if (pLined) {
l.PathStroke(pColor, pThickness, LiDrawFlags_Close);
} else {
l.PathFill(pColor);
}
}
} // namespace Ultra
} // namespace PD