52 msg.Printf( wxT(
"%d" ),
m_unit );
54 aList.emplace_back(
_(
"Unit" ), msg );
56 if(
m_convert == LIB_ITEM::LIB_CONVERT::BASE )
58 else if(
m_convert == LIB_ITEM::LIB_CONVERT::DEMORGAN )
63 aList.emplace_back(
_(
"Converted" ), msg );
73 if( !( aCompareFlags & COMPARE_FLAGS::UNIT ) &&
m_unit != aOther.
m_unit )
88 return compare( aOther, LIB_ITEM::COMPARE_FLAGS::EQUALITY ) == 0;
97 return (
compare( aOther ) < 0 );
119 void* aData,
const TRANSFORM& aTransform )
121 print( aSettings, aOffset, aData, aTransform );
const EDA_RECT GetBoundingBox() const override
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
The base class for create windows for drawing purpose.
Define a library symbol object.
bool Contains(const wxPoint &aPoint) const
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.
The base class for drawable items used by schematic library symbols.
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
virtual wxString GetTypeName() const =0
Provide a user-consumable name of the object type.
LIB_ITEM(KICAD_T aType, LIB_SYMBOL *aSymbol=nullptr, int aUnit=0, int aConvert=0)
virtual int compare(const LIB_ITEM &aOther, int aCompareFlags=0) const
Provide the draw object specific comparison called by the == and < operators.
int m_unit
Unit identification for multiple parts per package.
bool operator==(const LIB_ITEM &aOther) const
Test LIB_ITEM objects for equivalence.
int m_convert
Shape identification for alternate body styles.
bool operator<(const LIB_ITEM &aOther) const
Test if another draw item is less than this draw object.
#define STRUCT_DELETED
flag indication structures to be erased
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.
#define SKIP_STRUCT
flag indicating that the structure should be ignored
virtual void Print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform)
Draw an item.
bool HitTest(const wxPoint &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
Handle the component boundary box.
A base class for most all the KiCad significant classes used in schematics and boards.
bool Intersects(const EDA_RECT &aRect) const
Test for a common area between rectangles.
Message panel definition file.
virtual void print(const RENDER_SETTINGS *aSettings, const wxPoint &aOffset, void *aData, const TRANSFORM &aTransform)=0
Print the item to aDC.
EDA_RECT & Inflate(wxCoord dx, wxCoord dy)
Inflate the rectangle horizontally by dx and vertically by dy.
KICAD_T Type() const
Returns the type of object.