25 #ifndef LIB_RECTANGLE_H 26 #define LIB_RECTANGLE_H 38 void* aData,
const TRANSFORM& aTransform )
override;
49 return wxT(
"LIB_RECTANGLE" );
54 return _(
"Rectangle" );
59 bool HitTest(
const wxPoint& aPosition,
int aAccuracy = 0 )
const override;
61 bool HitTest(
const EDA_RECT& aRect,
bool aContained,
int aAccuracy = 0 )
const override;
69 void BeginEdit(
const wxPoint aStartPoint )
override;
70 void CalcEdit(
const wxPoint& aPosition )
override;
72 void Offset(
const wxPoint& aOffset )
override;
74 void MoveTo(
const wxPoint& aPosition )
override;
80 void Rotate(
const wxPoint& aCenter,
bool aRotateCCW =
true )
override;
82 void Plot(
PLOTTER* aPlotter,
const wxPoint& aOffset,
bool aFill,
113 #endif // LIB_RECTANGLE_H void print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform) override
Print the item to aDC.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
void MirrorHorizontal(const wxPoint &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is contained within or on the bounding box of an item.
PNG memory record (file in memory).
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Display basic info (type, part and convert) about the current item in message panel.
void MoveTo(const wxPoint &aPosition) override
Move a draw object to aPosition.
void BeginEdit(const wxPoint aStartPoint) override
Begin drawing a component library draw item at aPosition.
The base class for create windows for drawing purpose.
void Rotate(const wxPoint &aCenter, bool aRotateCCW=true) override
Rotate the object about aCenter point.
The base class for drawable items used by schematic library components.
wxString GetSelectMenuText(EDA_UNITS aUnits) const override
Return the text to display to be used in the selection clarification context menu when multiple items...
void SetWidth(int aWidth) override
wxString GetTypeName() const override
Provide a user-consumable name of the object type.
COMPARE_FLAGS
The list of flags used by the compare function.
BITMAP_DEF GetMenuImage() const override
Return a pointer to an image to be used in menus.
int GetWidth() const override
int GetPenWidth() const override
Define a library symbol object.
void MirrorVertical(const wxPoint &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
void SetEndPosition(const wxPoint &aPosition)
Base plotter engine class.
LIB_RECTANGLE(LIB_PART *aParent)
void SetEnd(const wxPoint &aEnd)
void Plot(PLOTTER *aPlotter, const wxPoint &aOffset, bool aFill, const TRANSFORM &aTransform) override
Plot the draw item using the plot object.
wxString GetClass() const override
Return the class name.
Handle the component boundary box.
void Offset(const wxPoint &aOffset) override
Set the drawing object by aOffset from the current position.
A base class for most all the KiCad significant classes used in schematics and boards.
void CalcEdit(const wxPoint &aPosition) override
Calculates the attributes of an item at aPosition when it is being edited.
const EDA_RECT GetBoundingBox() const override
wxPoint GetPosition() const override
int compare(const LIB_ITEM &aOther, LIB_ITEM::COMPARE_FLAGS aCompareFlags=LIB_ITEM::COMPARE_FLAGS::NORMAL) const override
Provide the draw object specific comparison called by the == and < operators.