7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-03-30 06:06:55 +00:00

Add another SWIG wrapper for BOX2I

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19485
This commit is contained in:
Jon Evans 2025-01-04 08:41:53 -05:00
parent 59b99c4b27
commit 3bebf24015

View File

@ -49,6 +49,14 @@
%template(VECTOR3D) VECTOR3<double>;
%template(BOX2I) BOX2<VECTOR2I>;
%extend BOX2<VECTOR2I>
{
BOX2I(const VECTOR2I& aPos, const VECTOR2I& aSize)
{
return new BOX2I(aPos, aSize);
}
}
%extend VECTOR2<int>
{
void Set(long x, long y) { self->x = x; self->y = y; }