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:
parent
59b99c4b27
commit
3bebf24015
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user