Files
palladium/source/ultra/elems/rect.cpp
tobid7 b5321ca1a1 Rework Project Ultra
- Added container
- Made container the base of Layout
- Set Containers theirself as pParent for Elements on Push
2026-03-29 04:28:45 +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