50 const wxString& aActualConversion )
60 lNode =
FindNode( aNode, wxT(
"pt" ) );
68 lNode =
FindNode( aNode, wxT(
"rotation" ) );
72 str = lNode->GetNodeContent();
77 aNode->GetAttribute( wxT(
"Name" ), &
m_Name.
text );
85 if( str.IsSameAs( wxT(
"True" ),
false ) )
88 lNode =
FindNode( aNode, wxT(
"textStyleRef" ) );
virtual void SetLayer(PCB_LAYER_ID aLayer)
Set the layer this item is on.
Information pertinent to a Pcbnew printed circuit board.
void Add(BOARD_ITEM *aItem, ADD_MODE aMode=ADD_MODE::INSERT, bool aSkipConnectivity=false) override
Removes an item from the container.
void SetTextPos(const VECTOR2I &aPoint)
void SetMirrored(bool isMirrored)
void SetTextThickness(int aWidth)
The TextThickness is that set by the user.
virtual void SetText(const wxString &aText)
virtual void SetTextAngle(const EDA_ANGLE &aAngle)
void SetItalic(bool aItalic)
Set the text to be italic - this will also update the font if needed.
PCB_LAYER_ID GetKiCadLayer() const
PCB_LAYER_ID m_KiCadLayer
PCAD_TEXT(PCAD_CALLBACKS *aCallbacks, BOARD *aBoard)
virtual void Parse(XNODE *aNode, int aLayer, const wxString &aDefaultUnits, const wxString &aActualConversion)
void AddToBoard(FOOTPRINT *aFootprint=nullptr) override
Hold an XML or S-expression element.
static constexpr EDA_ANGLE ANGLE_360
int StrToInt1Units(const wxString &aStr)
XNODE * FindNode(XNODE *aChild, const wxString &aTag)
void SetTextSizeFromStrokeFontHeight(EDA_TEXT *aText, int aTextHeight)
void SetPosition(const wxString &aStr, const wxString &aDefaultMeasurementUnit, int *aX, int *aY, const wxString &aActualConversion)
TTEXT_JUSTIFY GetJustifyIdentificator(const wxString &aJustify)
void SetTextJustify(EDA_TEXT *aText, TTEXT_JUSTIFY aJustify)
void SetFontProperty(XNODE *aNode, TTEXTVALUE *aTextValue, const wxString &aDefaultMeasurementUnit, const wxString &aActualConversion)
wxString FindNodeGetContent(XNODE *aChild, const wxString &aTag)
void SetTextSizeFromTrueTypeFontHeight(EDA_TEXT *aText, int aTextHeight)
VECTOR2< int32_t > VECTOR2I