![]() |
KiCad Pcbnew Python Scripting
|

Public Member Functions | |
| def | __init__ (self, *args) |
| "wxString const &" | GetText (self) |
| "wxString" | GetShownText (self, "int" aDepth=0, "bool" aAllowExtraText=True) |
| "wxString" | ShortenedShownText (self) |
| "bool" | HasTextVars (self) |
| "void" | SetText (self, "wxString" aText) |
| "void" | SetTextThickness (self, "int" aWidth) |
| "int" | GetTextThickness (self) |
| "int" | GetEffectiveTextPenWidth (self, "int" aDefaultWidth=0) |
| "void" | SetTextAngle (self, "double" aAngle) |
| "double" | GetTextAngle (self) |
| "double" | GetTextAngleDegrees (self) |
| "double" | GetTextAngleRadians (self) |
| "void" | SetItalic (self, "bool" isItalic) |
| "bool" | IsItalic (self) |
| "void" | SetBold (self, "bool" aBold) |
| "bool" | IsBold (self) |
| "void" | SetVisible (self, "bool" aVisible) |
| "bool" | IsVisible (self) |
| "void" | SetMirrored (self, "bool" isMirrored) |
| "bool" | IsMirrored (self) |
| "void" | SetMultilineAllowed (self, "bool" aAllow) |
| "bool" | IsMultilineAllowed (self) |
| "EDA_TEXT_HJUSTIFY_T" | GetHorizJustify (self) |
| "EDA_TEXT_VJUSTIFY_T" | GetVertJustify (self) |
| "void" | SetHorizJustify (self, "EDA_TEXT_HJUSTIFY_T" aType) |
| "void" | SetVertJustify (self, "EDA_TEXT_VJUSTIFY_T" aType) |
| "void" | SetEffects (self, "EDA_TEXT" aSrc) |
| "void" | SwapEffects (self, "EDA_TEXT" aTradingPartner) |
| "void" | SwapText (self, "EDA_TEXT" aTradingPartner) |
| "void" | CopyText (self, "EDA_TEXT" aSrc) |
| "bool" | Replace (self, "wxFindReplaceData const &" aSearchData) |
| "bool" | IsDefaultFormatting (self) |
| "void" | SetTextSize (self, "wxSize" aNewSize) |
| "wxSize const &" | GetTextSize (self) |
| "void" | SetTextWidth (self, "int" aWidth) |
| "int" | GetTextWidth (self) |
| "void" | SetTextHeight (self, "int" aHeight) |
| "int" | GetTextHeight (self) |
| "void" | SetTextPos (self, "wxPoint" aPoint) |
| "wxPoint const &" | GetTextPos (self) |
| "void" | SetTextX (self, "int" aX) |
| "void" | SetTextY (self, "int" aY) |
| "void" | Offset (self, "wxPoint" aOffset) |
| "void" | Empty (self) |
| "void" | Print (self, "RENDER_SETTINGS const *" aSettings, "wxPoint" aOffset, "COLOR4D" aColor, "OUTLINE_MODE" aDisplay_mode=FILLED) |
| "std::vector< wxPoint,std::allocator< wxPoint > >" | TransformToSegmentList (self) |
| "void" | TransformBoundingBoxWithClearanceToPolygon (self, "SHAPE_POLY_SET" aCornerBuffer, "int" aClearanceValue) |
| "std::shared_ptr< SHAPE_COMPOUND >" | GetEffectiveTextShape (self) |
| "bool" | TextHitTest (self, *args) |
| "int" | LenSize (self, "wxString" aLine, "int" aThickness) |
| "EDA_RECT" | GetTextBox (self, "int" aLine=-1, "bool" aInvertY=False) |
| "int" | GetInterline (self) |
| "wxString" | GetTextStyleName (self) |
| "void" | GetLinePositions (self, "wxPoint_Vector" aPositions, "int" aLineCount) |
| "void" | Format (self, "OUTPUTFORMATTER" aFormatter, "int" aNestLevel, "int" aControlBits) |
| "double" | GetDrawRotation (self) |
| "wxPoint" | GetDrawPos (self) |
| "EDA_TEXT_HJUSTIFY_T" | GetDrawHorizJustify (self) |
| "EDA_TEXT_VJUSTIFY_T" | GetDrawVertJustify (self) |
| "int" | Compare (self, "EDA_TEXT" aOther) |
Static Public Member Functions | |
| "EDA_TEXT_HJUSTIFY_T" | MapHorizJustify ("int" aHorizJustify) |
| "EDA_TEXT_VJUSTIFY_T" | MapVertJustify ("int" aVertJustify) |
Properties | |
| thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag") | |
| def pcbnew.EDA_TEXT.__init__ | ( | self, | |
| * | args | ||
| ) |
__init__(EDA_TEXT self, wxString text=wxEmptyString) -> EDA_TEXT
__init__(EDA_TEXT self, EDA_TEXT aText) -> EDA_TEXT
Reimplemented in pcbnew.PCB_TEXT, and pcbnew.FP_TEXT.
Definition at line 2580 of file pcbnew.py.

| "int" pcbnew.EDA_TEXT.Compare | ( | self, | |
| "EDA_TEXT" | aOther | ||
| ) |
| "void" pcbnew.EDA_TEXT.CopyText | ( | self, | |
| "EDA_TEXT" | aSrc | ||
| ) |
| "void" pcbnew.EDA_TEXT.Empty | ( | self | ) |
| "void" pcbnew.EDA_TEXT.Format | ( | self, | |
| "OUTPUTFORMATTER" | aFormatter, | ||
| "int" | aNestLevel, | ||
| "int" | aControlBits | ||
| ) |
| "EDA_TEXT_HJUSTIFY_T" pcbnew.EDA_TEXT.GetDrawHorizJustify | ( | self | ) |
| "wxPoint" pcbnew.EDA_TEXT.GetDrawPos | ( | self | ) |
| "double" pcbnew.EDA_TEXT.GetDrawRotation | ( | self | ) |
GetDrawRotation(EDA_TEXT self) -> double
Reimplemented in pcbnew.FP_TEXT.
| "EDA_TEXT_VJUSTIFY_T" pcbnew.EDA_TEXT.GetDrawVertJustify | ( | self | ) |
| "int" pcbnew.EDA_TEXT.GetEffectiveTextPenWidth | ( | self, | |
| "int" | aDefaultWidth = 0 |
||
| ) |
| "std.shared_ptr< SHAPE_COMPOUND >" pcbnew.EDA_TEXT.GetEffectiveTextShape | ( | self | ) |
| "EDA_TEXT_HJUSTIFY_T" pcbnew.EDA_TEXT.GetHorizJustify | ( | self | ) |
| "int" pcbnew.EDA_TEXT.GetInterline | ( | self | ) |
| "void" pcbnew.EDA_TEXT.GetLinePositions | ( | self, | |
| "wxPoint_Vector" | aPositions, | ||
| "int" | aLineCount | ||
| ) |
| "wxString" pcbnew.EDA_TEXT.GetShownText | ( | self, | |
| "int" | aDepth = 0, |
||
| "bool" | aAllowExtraText = True |
||
| ) |
GetShownText(EDA_TEXT self, int aDepth=0, bool aAllowExtraText=True) -> wxString
Reimplemented in pcbnew.PCB_TEXT, and pcbnew.FP_TEXT.
| "wxString const &" pcbnew.EDA_TEXT.GetText | ( | self | ) |
| "double" pcbnew.EDA_TEXT.GetTextAngle | ( | self | ) |
| "double" pcbnew.EDA_TEXT.GetTextAngleDegrees | ( | self | ) |
| "double" pcbnew.EDA_TEXT.GetTextAngleRadians | ( | self | ) |
| "EDA_RECT" pcbnew.EDA_TEXT.GetTextBox | ( | self, | |
| "int" | aLine = -1, |
||
| "bool" | aInvertY = False |
||
| ) |
| "int" pcbnew.EDA_TEXT.GetTextHeight | ( | self | ) |
| "wxPoint const &" pcbnew.EDA_TEXT.GetTextPos | ( | self | ) |
| "wxSize const &" pcbnew.EDA_TEXT.GetTextSize | ( | self | ) |
| "wxString" pcbnew.EDA_TEXT.GetTextStyleName | ( | self | ) |
| "int" pcbnew.EDA_TEXT.GetTextThickness | ( | self | ) |
| "int" pcbnew.EDA_TEXT.GetTextWidth | ( | self | ) |
| "EDA_TEXT_VJUSTIFY_T" pcbnew.EDA_TEXT.GetVertJustify | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.HasTextVars | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.IsBold | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.IsDefaultFormatting | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.IsItalic | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.IsMirrored | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.IsMultilineAllowed | ( | self | ) |
| "bool" pcbnew.EDA_TEXT.IsVisible | ( | self | ) |
IsVisible(EDA_TEXT self) -> bool
Reimplemented in pcbnew.PCB_TEXT.
| "int" pcbnew.EDA_TEXT.LenSize | ( | self, | |
| "wxString" | aLine, | ||
| "int" | aThickness | ||
| ) |
|
static |
|
static |
| "void" pcbnew.EDA_TEXT.Offset | ( | self, | |
| "wxPoint" | aOffset | ||
| ) |
| "void" pcbnew.EDA_TEXT.Print | ( | self, | |
| "RENDER_SETTINGS const *" | aSettings, | ||
| "wxPoint" | aOffset, | ||
| "COLOR4D" | aColor, | ||
| "OUTLINE_MODE" | aDisplay_mode = FILLED |
||
| ) |
| "bool" pcbnew.EDA_TEXT.Replace | ( | self, | |
| "wxFindReplaceData const &" | aSearchData | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetBold | ( | self, | |
| "bool" | aBold | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetEffects | ( | self, | |
| "EDA_TEXT" | aSrc | ||
| ) |
SetEffects(EDA_TEXT self, EDA_TEXT aSrc)
Reimplemented in pcbnew.FP_TEXT.
| "void" pcbnew.EDA_TEXT.SetHorizJustify | ( | self, | |
| "EDA_TEXT_HJUSTIFY_T" | aType | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetItalic | ( | self, | |
| "bool" | isItalic | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetMirrored | ( | self, | |
| "bool" | isMirrored | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetMultilineAllowed | ( | self, | |
| "bool" | aAllow | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetText | ( | self, | |
| "wxString" | aText | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextAngle | ( | self, | |
| "double" | aAngle | ||
| ) |
SetTextAngle(EDA_TEXT self, double aAngle)
Reimplemented in pcbnew.PCB_TEXT, and pcbnew.FP_TEXT.
| "void" pcbnew.EDA_TEXT.SetTextHeight | ( | self, | |
| "int" | aHeight | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextPos | ( | self, | |
| "wxPoint" | aPoint | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextSize | ( | self, | |
| "wxSize" | aNewSize | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextThickness | ( | self, | |
| "int" | aWidth | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextWidth | ( | self, | |
| "int" | aWidth | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextX | ( | self, | |
| "int" | aX | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetTextY | ( | self, | |
| "int" | aY | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetVertJustify | ( | self, | |
| "EDA_TEXT_VJUSTIFY_T" | aType | ||
| ) |
| "void" pcbnew.EDA_TEXT.SetVisible | ( | self, | |
| "bool" | aVisible | ||
| ) |
SetVisible(EDA_TEXT self, bool aVisible)
Reimplemented in pcbnew.PCB_TEXT.
| "wxString" pcbnew.EDA_TEXT.ShortenedShownText | ( | self | ) |
| "void" pcbnew.EDA_TEXT.SwapEffects | ( | self, | |
| "EDA_TEXT" | aTradingPartner | ||
| ) |
SwapEffects(EDA_TEXT self, EDA_TEXT aTradingPartner)
Reimplemented in pcbnew.FP_TEXT.
| "void" pcbnew.EDA_TEXT.SwapText | ( | self, | |
| "EDA_TEXT" | aTradingPartner | ||
| ) |
| "bool" pcbnew.EDA_TEXT.TextHitTest | ( | self, | |
| * | args | ||
| ) |
TextHitTest(EDA_TEXT self, wxPoint aPoint, int aAccuracy=0) -> bool
TextHitTest(EDA_TEXT self, EDA_RECT aRect, bool aContains, int aAccuracy=0) -> bool
Reimplemented in pcbnew.PCB_TEXT, and pcbnew.FP_TEXT.
Definition at line 2790 of file pcbnew.py.

| "void" pcbnew.EDA_TEXT.TransformBoundingBoxWithClearanceToPolygon | ( | self, | |
| "SHAPE_POLY_SET" | aCornerBuffer, | ||
| "int" | aClearanceValue | ||
| ) |
|
static |