50 return wxT(
"LIB_TEXT" );
63 void ViewGetLayers(
int aLayers[],
int& aCount )
const override;
65 bool HitTest(
const VECTOR2I& aPosition,
int aAccuracy = 0 )
const override;
67 bool HitTest(
const BOX2I& aRect,
bool aContained,
int aAccuracy = 0 )
const override
102 void Rotate(
const VECTOR2I& aCenter,
bool aRotateCCW =
true )
override;
107 const TRANSFORM& aTransform,
bool aDimmed )
const override;
131 int compare(
const LIB_ITEM& aOther,
int aCompareFlags = 0 )
const override;
134 const TRANSFORM& aTransform,
bool aDimmed )
override;
BITMAPS
A list of all bitmap identifiers.
void RevertYAxis()
Mirror the rectangle from the X axis (negate Y pos and size).
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.
A mix-in class (via multiple inheritance) that handles texts such as labels, parts,...
BOX2I GetTextBox(int aLine=-1, bool aInvertY=false) const
Useful in multiline texts to calculate the full text or a line area (for zones filling,...
const VECTOR2I & GetTextPos() const
const EDA_ANGLE & GetTextAngle() const
FONT is an abstract base class for both outline and stroke fonts.
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.
Define a library symbol object.
Define a symbol library graphical text item.
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
wxString GetTypeName() const override
Provide a user-consumable name of the object type.
void MirrorHorizontal(const VECTOR2I &aCenter) override
Mirror the draw object along the horizontal (X) axis about aCenter point.
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
const BOX2I GetBoundingBox() const override
void ViewGetLayers(int aLayers[], int &aCount) const override
Return the all the layers within the VIEW the object is painted on.
KIFONT::FONT * getDrawFont() const override
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 Rotate(const VECTOR2I &aCenter, bool aRotateCCW=true) override
Rotate the object about aCenter point.
bool operator==(const LIB_ITEM &aOther) const override
Test LIB_ITEM objects for equivalence.
double Similarity(const LIB_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
void MoveTo(const VECTOR2I &aPosition) override
Move a draw object to aPosition.
void NormalizeJustification(bool inverse)
int compare(const LIB_ITEM &aOther, int aCompareFlags=0) const override
Provide the draw object specific comparison called by the == and < operators.
void print(const RENDER_SETTINGS *aSettings, const VECTOR2I &aOffset, void *aData, const TRANSFORM &aTransform, bool aDimmed) override
Print the item to aDC.
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
VECTOR2I GetPosition() const override
int GetPenWidth() const override
wxString GetClass() const override
Return the class name.
void BeginEdit(const VECTOR2I &aStartPoint) override
Begin drawing a symbol library draw item at aPosition.
static bool ClassOf(const EDA_ITEM *aItem)
bool HitTest(const BOX2I &aRect, bool aContained, int aAccuracy=0) const override
Test if aRect intersects this item.
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider) const override
Return a user-visible description string of this item.
void CalcEdit(const VECTOR2I &aPosition) override
Calculate the attributes of an item at aPosition when it is being edited.
void Plot(PLOTTER *aPlotter, bool aBackground, const VECTOR2I &aOffset, const TRANSFORM &aTransform, bool aDimmed) const override
Plot the draw item using the plot object.
void Offset(const VECTOR2I &aOffset) override
Set the drawing object by aOffset from the current position.
void MirrorVertical(const VECTOR2I &aCenter) override
Mirror the draw object along the MirrorVertical (Y) axis about aCenter point.
Base plotter engine class.
#define STRUCT_DELETED
flag indication structures to be erased
#define SKIP_STRUCT
flag indicating that the structure should be ignored