39 m_convert( aConvert ),
56 aList.emplace_back(
_(
"Unit" ), msg );
65 aList.emplace_back(
_(
"Converted" ), msg );
68 aList.emplace_back(
_(
"Private" ), wxEmptyString );
111 return (
compare( aOther ) < 0 );
141 const TRANSFORM& aTransform,
bool aDimmed )
143 print( aSettings, aOffset, aData, aTransform, aDimmed );
bool Intersects(const BOX2< Vec > &aRect) const
bool Contains(const Vec &aPoint) const
BOX2< Vec > & Inflate(coord_type dx, coord_type dy)
Inflates the rectangle horizontally by dx and vertically by dy.
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
KICAD_T Type() const
Returns the type of object.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
The base class for drawable items used by schematic library symbols.
virtual wxString GetTypeName() const =0
Provide a user-consumable name of the object type.
const wxString & GetDefaultFont() const
virtual void print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset, void *aData, const TRANSFORM &aTransform, bool aDimmed)=0
Print the item to aDC.
bool operator==(const LIB_ITEM &aOther) const
Test LIB_ITEM objects for equivalence.
int m_convert
Shape identification for alternate body styles.
virtual int compare(const LIB_ITEM &aOther, int aCompareFlags=0) const
Provide the draw object specific comparison called by the == and < operators.
virtual void Print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset, void *aData, const TRANSFORM &aTransform, bool aDimmed)
Draw an item.
LIB_ITEM(KICAD_T aType, LIB_SYMBOL *aSymbol=nullptr, int aUnit=0, int aConvert=0)
const BOX2I GetBoundingBox() const override
int m_unit
Unit identification for multiple parts per package.
bool operator<(const LIB_ITEM &aOther) const
Test if another draw item is less than this draw object.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
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 ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
Define a library symbol object.
static wxString SubReference(int aUnit, bool aAddSeparator=true)
#define STRUCT_DELETED
flag indication structures to be erased
#define SKIP_STRUCT
flag indicating that the structure should be ignored
@ LAYER_DEVICE_BACKGROUND
@ LAYER_SELECTION_SHADOWS
Message panel definition file.
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
bool operator()(const LIB_ITEM *aFirst, const LIB_ITEM *aSecond) const
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.