kicad/pcbnew/swig/zone.i

22 lines
470 B
OpenEdge ABL
Raw Normal View History

// Do not permit default ZONE_FILLER ctor since commits are not supported from Python
%ignore ZONE_FILLER::ZONE_FILLER(BOARD*, COMMIT*);
%include class_zone.h
%include zones.h
%{
#include <class_zone.h>
#include <zones.h>
#include <zone_filler.h>
%}
// Provide a compatiblity 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 );
}
}