7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-11-26 00:30:27 +00:00
kicad/pcbnew/python/swig/zone.i
2021-06-09 19:32:58 +00:00

22 lines
459 B
OpenEdge ABL

// Do not permit default ZONE_FILLER ctor since commits are not supported from Python
%ignore ZONE_FILLER::ZONE_FILLER(BOARD*, COMMIT*);
%include zone.h
%include zones.h
%{
#include <zone.h>
#include <zones.h>
#include <zone_filler.h>
%}
// Provide a compatibility ctor for ZONE_FILLER that doesn't need a COMMIT
%include zone_filler.h
%extend ZONE_FILLER
{
ZONE_FILLER( BOARD* aBoard )
{
return new ZONE_FILLER( aBoard, nullptr );
}
}