KiCad PCB EDA Suite
lib_pin.h File Reference
#include <class_eda_rect.h>
#include <lib_draw_item.h>
#include "pin_shape.h"
#include "pin_type.h"
#include "class_libentry.h"

Go to the source code of this file.

Classes

class  LIB_PIN
 

Macros

#define TARGET_PIN_RADIUS   12
 
#define PIN_INVISIBLE   1
 

Enumerations

enum  DrawPinOrient { PIN_RIGHT = 'R', PIN_LEFT = 'L', PIN_UP = 'U', PIN_DOWN = 'D' }
 The component library pin object orientations. More...
 
enum  LibPinDrawFlags { PIN_DRAW_TEXTS = 1, PIN_DRAW_DANGLING = 2, PIN_DANGLING_HIDDEN = 4, PIN_DRAW_ELECTRICAL_TYPE_NAME = 8 }
 

Macro Definition Documentation

#define PIN_INVISIBLE   1

Definition at line 46 of file lib_pin.h.

Referenced by LIB_PIN::IsVisible(), and LIB_PIN::SetVisible().

#define TARGET_PIN_RADIUS   12

Definition at line 43 of file lib_pin.h.

Referenced by LIB_PIN::DrawPinSymbol(), and LIB_PIN::GetBoundingBox().

Enumeration Type Documentation

The component library pin object orientations.

Enumerator
PIN_RIGHT 
PIN_LEFT 
PIN_UP 
PIN_DOWN 

Definition at line 52 of file lib_pin.h.

52  {
53  PIN_RIGHT = 'R',
54  PIN_LEFT = 'L',
55  PIN_UP = 'U',
56  PIN_DOWN = 'D'
57 };
Definition: lib_pin.h:55
Enumerator
PIN_DRAW_TEXTS 
PIN_DRAW_DANGLING 
PIN_DANGLING_HIDDEN 
PIN_DRAW_ELECTRICAL_TYPE_NAME 

Definition at line 59 of file lib_pin.h.

59  {
60  PIN_DRAW_TEXTS = 1,
61  PIN_DRAW_DANGLING = 2, // Draw this pin with a 'dangling' indicator
62  PIN_DANGLING_HIDDEN = 4, // Draw (only!) the dangling indicator if the pin is hidden
63  PIN_DRAW_ELECTRICAL_TYPE_NAME = 8 // Draw the pin electrical type name
64  // used only in component editor and component viewer
65 };