mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-07 17:25:33 +00:00
Add more SWIG compatibility shims
This commit is contained in:
parent
114a76f091
commit
9ed3474a5b
pcbnew/python/swig
@ -97,8 +97,13 @@
|
||||
""" Sets footprint fields map. """
|
||||
for k, v in fields.items():
|
||||
self.SetField(k, v)
|
||||
|
||||
%}
|
||||
|
||||
// Compatibility shim
|
||||
const BOX2I GetBoundingBox( bool aIncludeText, bool includeHiddenText ) const
|
||||
{
|
||||
return ( $self )->GetBoundingBox( aIncludeText );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,6 +34,18 @@ const int PAD_DRILL_SHAPE_OBLONG = (const int)PAD_DRILL_SHAPE::OBLONG;
|
||||
VECTOR2I GetOffset() { return $self->GetOffset( F_Cu ); }
|
||||
void SetOffset( VECTOR2I aOffset ) { $self->SetOffset( F_Cu, aOffset ); }
|
||||
|
||||
double GetRoundRectCornerRadius() { return $self->GetRoundRectCornerRadius( F_Cu ); }
|
||||
void SetRoundRectCornerRadius( double aRadius ) { $self->SetRoundRectCornerRadius( F_Cu, aRadius ); }
|
||||
|
||||
double GetRoundRectRadiusRatio() { return $self->GetRoundRectRadiusRatio( F_Cu ); }
|
||||
void SetRoundRectRadiusRatio( double aRatio ) { $self->SetRoundRectRadiusRatio( F_Cu, aRatio ); }
|
||||
|
||||
double GetChamferRectRatio() { return $self->GetChamferRectRatio( F_Cu ); }
|
||||
void SetChamferRectRatio( double aRatio ) { $self->SetChamferRectRatio( F_Cu, aRatio ); }
|
||||
|
||||
int GetChamferPositions() { return $self->GetChamferPositions( F_Cu ); }
|
||||
void SetChamferPositions( int aPositions ) { $self->SetChamferPositions( F_Cu, aPositions ); }
|
||||
|
||||
%pythoncode
|
||||
%{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user