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);
|
2026-03-29 04:28:45 +02:00
|
|
|
if (pLined) {
|
|
|
|
|
l.PathStroke(pColor, pThickness, LiDrawFlags_Close);
|
|
|
|
|
} else {
|
|
|
|
|
l.PathFill(pColor);
|
|
|
|
|
}
|
2026-03-26 21:02:10 +01:00
|
|
|
}
|
|
|
|
|
} // namespace Ultra
|
|
|
|
|
} // namespace PD
|