Add Python API compatibility for GetEffectiveTextShape.
This commit is contained in:
parent
3ce4a5bf7f
commit
2263535d3a
|
@ -80,6 +80,20 @@ principle should be easily implemented by adapting the current STL containers.
|
|||
%ignore to_json;
|
||||
%ignore from_json;
|
||||
|
||||
%rename(GetEffectiveTextShapeNative) EDA_TEXT::GetEffectiveTextShape;
|
||||
|
||||
%extend EDA_TEXT
|
||||
{
|
||||
%pythoncode
|
||||
%{
|
||||
|
||||
# KiCad 7.0 API Compatibility
|
||||
def GetEffectiveTextShape(self, aTriangulate=True, aUseTextRotation=True):
|
||||
return self.GetEffectiveTextShapeNative(aTriangulate)
|
||||
|
||||
%}
|
||||
}
|
||||
|
||||
// headers/imports that must be included in the _wrapper.cpp at top
|
||||
|
||||
%{
|
||||
|
|
Loading…
Reference in New Issue