KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_pin.h File Reference
#include <memory>
#include <set>
#include <vector>
#include <pin_type.h>
#include <pin_comparison.h>
#include <sch_item.h>

Go to the source code of this file.

Classes

class  SCH_PIN
 
struct  SCH_PIN::EXTENTS_CACHE
 

Namespaces

namespace  KIFONT
 

Macros

#define TARGET_PIN_RADIUS   schIUScale.MilsToIU( 15 )
 

Functions

wxString FormatStackedPinForDisplay (const wxString &aPinNumber, int aPinLength, int aTextSize, KIFONT::FONT *aFont, const KIFONT::METRICS &aFontMetrics)
 Break a stacked pin number of the form "[A,B,C]" into one number per line when it is too wide to sit alongside the pin.
 

Macro Definition Documentation

◆ TARGET_PIN_RADIUS

Function Documentation

◆ FormatStackedPinForDisplay()

wxString FormatStackedPinForDisplay ( const wxString & aPinNumber,
int aPinLength,
int aTextSize,
KIFONT::FONT * aFont,
const KIFONT::METRICS & aFontMetrics )

Break a stacked pin number of the form "[A,B,C]" into one number per line when it is too wide to sit alongside the pin.

Anything else, and anything that already fits, is returned as-is.

Everything that draws, plots or measures a pin number goes through here.

Definition at line 50 of file sch_pin.cpp.

References GetPenSizeForNormal(), result, schIUScale, SplitStackedPinDisplayItems(), KIFONT::FONT::StringBoundaryLimits(), and VECTOR2< T >::x.

Referenced by SCH_PIN::PlotPinTexts(), and PIN_LAYOUT_CACHE::recomputeCaches().