65 return wxT(
"LIB_TEXT" );
83 void SetText(
const wxString& aText )
override;
107 void EndEdit(
const wxPoint& aPosition,
bool aAbort =
false )
override;
121 void Rotate(
const wxPoint& aCenter,
bool aRotateCCW =
true )
override;
152 #endif // _LIB_TEXT_H_ void BeginEdit(STATUS_FLAGS aEditMode, const wxPoint aStartPoint=wxPoint(0, 0)) override
Begin an editing a component library draw item in aEditMode at aPosition.
void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform) override
Plot the draw item using the plot object.
PNG memory record (file in memory).
const wxPoint & GetTextPos() const
void Move(const wxPoint &aPosition) override
Move a draw object to aPosition.
Define a symbol library graphical text item.
bool HitTest(const wxPoint &aPosition) const override
Function HitTest tests if aPosition is contained within or on the bounding area of an item...
void EndEdit(const wxPoint &aPosition, bool aAbort=false) override
End an object editing action.
bool ContinueEdit(const wxPoint aNextPoint) override
Continue an edit in progress at aPosition.
void MirrorHorizontal(const wxPoint &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
wxPoint GetPosition() const override
Return the current draw object position.
Definition of base KiCad text object.
void Rotate() override
Rotate the draw item.
bool Inside(EDA_RECT &aRect) const override
Test if any part of the draw object is inside rectangle bounds of aRect.
The base class for drawable items used by schematic library components.
int GetThickness() const
Function GetThickness returns pen width.
Class EDA_TEXT is a mix-in class (via multiple inheritance) that handles texts such as labels...
void GetMsgPanelInfo(std::vector< MSG_PANEL_ITEM > &aList) override
Display basic info (type, part and convert) about the current item in message panel.
virtual bool TextHitTest(const wxPoint &aPoint, int aAccuracy=0) const
Function TextHitTest Test if aPoint is within the bounds of this object.
GR_DRAWMODE
Drawmode. Compositing mode plus a flag or two.
void SetOffset(const wxPoint &aOffset) override
Set the drawing object by aOffset from the current position.
Define a library symbol object.
int GetWidth() const override
Return the width of the draw item.
bool m_rotate
Flag to indicate a rotation occurred while editing.
void MirrorVertical(const wxPoint &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
int GetPenSize() const override
wxString m_savedText
Temporary storage for the string when edition.
void calcEdit(const wxPoint &aPosition) override
Calculates the attributes of an item at aPosition when it is being edited.
Base plotter engine class.
BITMAP_DEF GetMenuImage() const override
Function GetMenuImage returns a pointer to an image to be used in menus.
void drawGraphic(EDA_DRAW_PANEL *aPanel, wxDC *aDC, const wxPoint &aOffset, COLOR4D aColor, GR_DRAWMODE aDrawMode, void *aData, const TRANSFORM &aTransform) override
Draw the item on aPanel.
const EDA_RECT GetBoundingBox() const override
void SetText(const wxString &aText) override
Sets the text item string to aText.
wxString GetClass() const override
Function GetClass returns the class name.
Class EDA_RECT handles the component boundary box.
Class EDA_ITEM is a base class for most all the KiCad significant classes, used in schematics and boa...
bool HitTest(const EDA_RECT &aRect) const
EDA_ITEM * Clone() const override
Function Clone creates a duplicate of this item with linked list members set to NULL.
wxString GetTypeName() override
Provide a user-consumable name of the object type.
void SetWidth(int aWidth) override
Set the width of the draw item to aWidth.
bool m_updateText
Flag to indicate text change occurred while editing.
LIB_TEXT(LIB_PART *aParent)
int compare(const LIB_ITEM &aOther) const override
Provide the draw object specific comparison called by the == and < operators.
void SetThickness(int aNewThickness)
Function SetThickness sets pen width.
wxString GetSelectMenuText() const override
Function GetSelectMenuText returns the text to display to be used in the selection clarification cont...
Class COLOR4D is the color representation with 4 components: red, green, blue, alpha.