Files
palladium/source/ultra/elems/rect.cpp

14 lines
343 B
C++
Raw Permalink Normal View History

2026-03-26 21:02:10 +01:00
#include <pd/ultra/elems/rect.hpp>
namespace PD {
namespace Ultra {
PD_API void Rect::Draw(PD::Li::Drawlist& l) {
2026-04-02 23:29:53 +02:00
l.PathRect(pRenderspace.TopLeft(), pRenderspace.BotRight(), pRounding);
if (pLined) {
l.PathStroke(pColor, pThickness, LiDrawFlags_Close);
} else {
l.PathFill(pColor);
}
2026-03-26 21:02:10 +01:00
}
} // namespace Ultra
} // namespace PD