KiCad PCB EDA Suite
|
#include "sch_pin.h"
#include <base_units.h>
#include <pgm_base.h>
#include <pin_layout_cache.h>
#include <plotters/plotter.h>
#include <sch_draw_panel.h>
#include <sch_edit_frame.h>
#include <symbol_edit_frame.h>
#include <settings/settings_manager.h>
#include <symbol_editor/symbol_editor_settings.h>
#include <trigo.h>
#include <string_utils.h>
Go to the source code of this file.
Classes | |
struct | SCH_PIN_DESC |
Macros | |
#define | PIN_TEXT_MARGIN 4 |
Functions | |
wxString | FormatStackedPinForDisplay (const wxString &aPinNumber, int aPinLength, int aTextSize, KIFONT::FONT *aFont, const KIFONT::METRICS &aFontMetrics) |
static int | internalPinDecoSize (const RENDER_SETTINGS *aSettings, const SCH_PIN &aPin) |
Utility for getting the size of the 'internal' pin decorators (as a radius) i.e. | |
static int | externalPinDecoSize (const RENDER_SETTINGS *aSettings, const SCH_PIN &aPin) |
Utility for getting the size of the 'external' pin decorators (as a radius) i.e. | |
Variables | |
static struct SCH_PIN_DESC | _SCH_PIN_DESC |
#define PIN_TEXT_MARGIN 4 |
Definition at line 87 of file sch_pin.cpp.
Referenced by PIN_LAYOUT_CACHE::GetPinNameInfo(), PIN_LAYOUT_CACHE::GetPinNumberInfo(), PIN_LAYOUT_CACHE::getUntransformedPinTypeBox(), and SCH_PIN::PlotPinTexts().
|
static |
Utility for getting the size of the 'external' pin decorators (as a radius) i.e.
the negation circle, the polarity 'slopes' and the nonlogic marker
Definition at line 106 of file sch_pin.cpp.
References SCH_PIN::GetNumberTextSize(), and SCH_RENDER_SETTINGS::m_PinSymbolSize.
wxString FormatStackedPinForDisplay | ( | const wxString & | aPinNumber, |
int | aPinLength, | ||
int | aTextSize, | ||
KIFONT::FONT * | aFont, | ||
const KIFONT::METRICS & | aFontMetrics ) |
Definition at line 42 of file sch_pin.cpp.
References GetPenSizeForNormal(), result, schIUScale, KIFONT::FONT::StringBoundaryLimits(), wxStringSplit(), and VECTOR2< T >::x.
Referenced by PIN_LAYOUT_CACHE::GetPinNumberInfo(), and SCH_PIN::PlotPinTexts().
|
static |
Utility for getting the size of the 'internal' pin decorators (as a radius) i.e.
the clock symbols (falling clock is actually external but is of the same kind)
Definition at line 92 of file sch_pin.cpp.
References SCH_PIN::GetNameTextSize(), SCH_PIN::GetNumberTextSize(), and SCH_RENDER_SETTINGS::m_PinSymbolSize.
|
static |