KiCad PCB EDA Suite
Loading...
Searching...
No Matches
lib_pin.cpp File Reference
#include <base_units.h>
#include <pgm_base.h>
#include <sch_draw_panel.h>
#include <sch_edit_frame.h>
#include <symbol_edit_frame.h>
#include <lib_pin.h>
#include <settings/settings_manager.h>
#include <symbol_editor/symbol_editor_settings.h>
#include <trigo.h>
#include <string_utils.h>
#include "sch_painter.h"
#include "plotters/plotter.h"

Go to the source code of this file.

Classes

struct  LIB_PIN_DESC
 

Macros

#define PIN_TEXT_MARGIN   4
 
#define ETXT_MAX_SIZE   schIUScale.mmToIU( 0.7 )
 

Functions

static int internalPinDecoSize (const RENDER_SETTINGS *aSettings, const LIB_PIN &aPin)
 Utility for getting the size of the 'internal' pin decorators (as a radius)
 
static int externalPinDecoSize (const RENDER_SETTINGS *aSettings, const LIB_PIN &aPin)
 Utility for getting the size of the 'external' pin decorators (as a radius)
 

Variables

static struct LIB_PIN_DESC _LIB_PIN_DESC
 

Macro Definition Documentation

◆ ETXT_MAX_SIZE

#define ETXT_MAX_SIZE   schIUScale.mmToIU( 0.7 )

◆ PIN_TEXT_MARGIN

#define PIN_TEXT_MARGIN   4

Definition at line 41 of file lib_pin.cpp.

Function Documentation

◆ externalPinDecoSize()

static int externalPinDecoSize ( const RENDER_SETTINGS aSettings,
const LIB_PIN aPin 
)
static

Utility for getting the size of the 'external' pin decorators (as a radius)

Definition at line 86 of file lib_pin.cpp.

References LIB_PIN::GetNumberTextSize(), and SCH_RENDER_SETTINGS::m_PinSymbolSize.

Referenced by KIGFX::SCH_PAINTER::draw(), LIB_PIN::GetBoundingBox(), LIB_PIN::PlotPinType(), and LIB_PIN::printPinSymbol().

◆ internalPinDecoSize()

static int internalPinDecoSize ( const RENDER_SETTINGS aSettings,
const LIB_PIN aPin 
)
static

Utility for getting the size of the 'internal' pin decorators (as a radius)

Definition at line 73 of file lib_pin.cpp.

References LIB_PIN::GetNameTextSize(), LIB_PIN::GetNumberTextSize(), and SCH_RENDER_SETTINGS::m_PinSymbolSize.

Referenced by KIGFX::SCH_PAINTER::draw(), LIB_PIN::PlotPinType(), and LIB_PIN::printPinSymbol().

Variable Documentation

◆ _LIB_PIN_DESC

struct LIB_PIN_DESC _LIB_PIN_DESC
static