KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sch_pin.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Jean-Pierre Charras, jaen-pierre.charras at wanadoo.fr
5 * Copyright (C) 2015 Wayne Stambaugh <[email protected]>
6 * Copyright (C) 2018 CERN
7 * Copyright The KiCad Developers, see AUTHOR.txt for contributors.
8 * @author Jon Evans <[email protected]>
9 *
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24#pragma once
25
26#include <memory>
27
28#include <pin_type.h>
29#include <sch_item.h>
30
31class LIB_SYMBOL;
32class SCH_SYMBOL;
34
35// Circle diameter drawn at the active end of pins:
36#define TARGET_PIN_RADIUS schIUScale.MilsToIU( 15 )
37
38
39class SCH_PIN : public SCH_ITEM
40{
41public:
42 struct ALT
43 {
44 wxString m_Name;
45 GRAPHIC_PINSHAPE m_Shape; // Shape drawn around pin
46 ELECTRICAL_PINTYPE m_Type; // Electrical type of the pin.
47 };
48
49 SCH_PIN( LIB_SYMBOL* aParentSymbol );
50
51 SCH_PIN( LIB_SYMBOL* aParentSymbol, const wxString& aName, const wxString& aNumber,
52 PIN_ORIENTATION aOrientation, ELECTRICAL_PINTYPE aPinType, int aLength,
53 int aNameTextSize, int aNumTextSize, int aBodyStyle, const VECTOR2I& aPos, int aUnit );
54
55 SCH_PIN( SCH_SYMBOL* aParentSymbol, SCH_PIN* aLibPin );
56
57 SCH_PIN( SCH_SYMBOL* aParentSymbol, const wxString& aNumber, const wxString& aAlt,
58 const KIID& aUuid );
59
60 SCH_PIN( const SCH_PIN& aPin );
61
62 ~SCH_PIN();
63
64 SCH_PIN& operator=( const SCH_PIN& aPin );
65
66 wxString GetClass() const override
67 {
68 return wxT( "SCH_PIN" );
69 }
70
71 static bool ClassOf( const EDA_ITEM* aItem )
72 {
73 return aItem && aItem->Type() == SCH_PIN_T;
74 }
75
76 wxString GetFriendlyName() const override
77 {
78 return _( "Pin" );
79 }
80
81 SCH_PIN* GetLibPin() const { return m_libPin; }
82 void SetLibPin( SCH_PIN* aLibPin ) { m_libPin = aLibPin; }
83
85 void SetOrientation( PIN_ORIENTATION aOrientation ) { m_orientation = aOrientation; }
86
88 void SetShape( GRAPHIC_PINSHAPE aShape ) { m_shape = aShape; }
89
90 int GetLength() const;
91 void SetLength( int aLength ) { m_length = aLength; }
92
98 void ChangeLength( int aLength );
99
101 void SetType( ELECTRICAL_PINTYPE aType );
102 wxString GetCanonicalElectricalTypeName() const;
103 wxString GetElectricalTypeName() const;
104
105 bool IsVisible() const;
106 void SetVisible( bool aVisible ) { m_hidden = !aVisible; }
107
108 const wxString& GetName() const;
109 wxString GetShownName() const;
110 void SetName( const wxString& aName );
114 const wxString& GetBaseName() const;
115
116 const wxString& GetNumber() const { return m_number; }
117 wxString GetShownNumber() const;
118 void SetNumber( const wxString& aNumber );
119
120 int GetNameTextSize() const;
121 void SetNameTextSize( int aSize );
122
123 int GetNumberTextSize() const;
124 void SetNumberTextSize( int aSize );
125
126 const std::map<wxString, ALT>& GetAlternates() const
127 {
128 if( m_libPin )
129 return m_libPin->GetAlternates();
130
131 return m_alternates;
132 }
133
134 std::map<wxString, ALT>& GetAlternates()
135 {
136 return const_cast<std::map<wxString, ALT>&>(
137 static_cast<const SCH_PIN*>( this )->GetAlternates() );
138 }
139
140 ALT GetAlt( const wxString& aAlt )
141 {
142 return GetAlternates()[ aAlt ];
143 }
144
145 wxString GetAlt() const { return m_alt; }
146 void SetAlt( const wxString& aAlt ) { m_alt = aAlt; }
147
148 void Print( const SCH_RENDER_SETTINGS* aSettings, int aUnit, int aBodyStyle,
149 const VECTOR2I& aOffset, bool aForceNoFill, bool aDimmed ) override;
150
157 PIN_ORIENTATION PinDrawOrient( const TRANSFORM& aTransform ) const;
158
159#if defined(DEBUG)
160 void Show( int nestLevel, std::ostream& os ) const override;
161#endif
162
163 bool HitTest( const VECTOR2I& aPosition, int aAccuracy = 0 ) const override;
164
165 bool HitTest( const BOX2I& aRect, bool aContained, int aAccuracy = 0 ) const override;
166
167 void GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>& aList ) override;
168
169 const BOX2I ViewBBox() const override;
170
171 std::vector<int> ViewGetLayers() const override;
172
173 /* Cannot use a default parameter here as it will not be compatible with the virtual. */
174 const BOX2I GetBoundingBox() const override
175 {
176 return GetBoundingBox( false, true, m_flags & SHOW_ELEC_TYPE );
177 }
178
183 BOX2I GetBoundingBox( bool aIncludeLabelsOnInvisiblePins, bool aIncludeNameAndNumber,
184 bool aIncludeElectricalType ) const;
185
190 bool IsGlobalPower() const;
191
192 int GetPenWidth() const override { return 0; }
193
194 void Move( const VECTOR2I& aOffset ) override;
195
196 VECTOR2I GetPosition() const override;
198 void SetPosition( const VECTOR2I& aPos ) override { m_position = aPos; }
199
200 // For properties system
201 int GetX() const { return m_position.x; }
202 void SetX( int aX ) { m_position.x = aX; }
203 int GetY() const { return m_position.y; }
204 void SetY( int aY ) { m_position.y = aY; }
205
206 VECTOR2I GetPinRoot() const;
207
211 void MirrorHorizontally( int aCenter ) override;
212 void MirrorVertically( int aCenter ) override;
213 void Rotate( const VECTOR2I& aCenter, bool aRotateCCW = true ) override;
214
218 void MirrorHorizontallyPin( int aCenter );
219 void MirrorVerticallyPin( int aCenter );
220 void RotatePin( const VECTOR2I& aCenter, bool aRotateCCW = true );
221
227 void PlotPinTexts( PLOTTER *aPlotter, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient,
228 int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed ) const;
229
230 void PlotPinType( PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation,
231 bool aDimmed ) const;
232
233 void Plot( PLOTTER* aPlotter, bool aBackground, const SCH_PLOT_OPTS& aPlotOpts,
234 int aUnit, int aBodyStyle, const VECTOR2I& aOffset, bool aDimmed ) override;
235
236 BITMAPS GetMenuImage() const override;
237
238 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, bool aFull ) const override;
239 wxString GetItemDescription( UNITS_PROVIDER* aUnitsProvider, ALT* aAlt ) const;
240
241 EDA_ITEM* Clone() const override;
242
243 void CalcEdit( const VECTOR2I& aPosition ) override;
244
245 bool Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const override;
246
247 bool Replace( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) override;
248
257 static wxString GetCanonicalElectricalTypeName( ELECTRICAL_PINTYPE aType );
258
259 bool IsConnectable() const override { return true; }
260
261 bool HasConnectivityChanges( const SCH_ITEM* aItem,
262 const SCH_SHEET_PATH* aInstance = nullptr ) const override;
263
264 void ClearDefaultNetName( const SCH_SHEET_PATH* aPath );
265 wxString GetDefaultNetName( const SCH_SHEET_PATH& aPath, bool aForceNoConnect = false );
266
267 bool IsDangling() const override;
268 void SetIsDangling( bool aIsDangling );
269
274 bool IsStacked( const SCH_PIN* aPin ) const;
275
276 bool IsPointClickableAnchor( const VECTOR2I& aPos ) const override
277 {
278 return m_isDangling && GetPosition() == aPos;
279 }
280
281 bool ConnectionPropagatesTo( const EDA_ITEM* aItem ) const override;
282
283 const wxString& GetOperatingPoint() const { return m_operatingPoint; }
284 void SetOperatingPoint( const wxString& aText ) { m_operatingPoint = aText; }
285
286 double Similarity( const SCH_ITEM& aOther ) const override;
287
288 bool operator>( const SCH_ITEM& aRhs ) const { return compare( aRhs, EQUALITY ) > 0; }
289
298
299protected:
300 wxString getItemDescription( ALT* aAlt ) const;
301
303 {
305 int m_FontSize = 0;
307 };
308
309 void validateExtentsCache( KIFONT::FONT* aFont, int aSize, const wxString& aText,
310 EXTENTS_CACHE* aCache ) const;
311
316 void printPinSymbol( const SCH_RENDER_SETTINGS *aSettings, const VECTOR2I &aPos,
317 PIN_ORIENTATION aOrientation, bool aDimmed );
318
327 void printPinTexts( const RENDER_SETTINGS* aSettings, const VECTOR2I& aPinPos,
328 PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum,
329 bool aDrawPinName, bool aDimmed );
330
334 void printPinElectricalTypeName( const RENDER_SETTINGS* aSettings, const VECTOR2I& aPosition,
335 PIN_ORIENTATION aOrientation, bool aDimmed );
336 std::ostream& operator<<( std::ostream& aStream );
337
338private:
355 int compare( const SCH_ITEM& aOther, int aCompareFlags = 0 ) const override;
356
357protected:
358 SCH_PIN* m_libPin; // The corresponding pin in the LIB_SYMBOL
359 // (nullptr for a pin *in* the LIB_SYMBOL)
360
361 std::map<wxString, ALT> m_alternates; // Map of alternate name to ALT structure
362 // (only valid for pins in LIB_SYMBOLS)
363
364 VECTOR2I m_position; // Position of the pin.
365 std::optional<int> m_length; // Length of the pin.
366 PIN_ORIENTATION m_orientation; // Pin orientation (Up, Down, Left, Right)
367 GRAPHIC_PINSHAPE m_shape; // Shape drawn around pin
368 ELECTRICAL_PINTYPE m_type; // Electrical type of the pin.
369 std::optional<bool> m_hidden;
370 wxString m_name;
371 wxString m_number;
372 std::optional<int> m_numTextSize; // Pin num and Pin name sizes
373 std::optional<int> m_nameTextSize;
374 wxString m_alt; // The current alternate for an instance
375
377
379
384 mutable std::unique_ptr<PIN_LAYOUT_CACHE> m_layoutCache;
385
387 std::recursive_mutex m_netmap_mutex;
388 std::map<const SCH_SHEET_PATH, std::pair<wxString, bool>> m_net_name_map;
389};
BITMAPS
A list of all bitmap identifiers.
Definition: bitmaps_list.h:33
The base class for create windows for drawing purpose.
A base class for most all the KiCad significant classes used in schematics and boards.
Definition: eda_item.h:89
KICAD_T Type() const
Returns the type of object.
Definition: eda_item.h:101
EDA_ITEM_FLAGS m_flags
Definition: eda_item.h:501
FONT is an abstract base class for both outline and stroke fonts.
Definition: font.h:131
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
Definition: kiid.h:49
Define a library symbol object.
Definition: lib_symbol.h:84
A pin layout helper is a class that manages the layout of the parts of a pin on a schematic symbol:
Base plotter engine class.
Definition: plotter.h:105
Base class for any item which can be embedded within the SCHEMATIC container class,...
Definition: sch_item.h:167
@ EQUALITY
Definition: sch_item.h:646
void Rotate(const VECTOR2I &aCenter, bool aRotateCCW=true) override
Rotate the item around aCenter 90 degrees in the clockwise direction.
Definition: sch_pin.cpp:1523
std::ostream & operator<<(std::ostream &aStream)
Definition: sch_pin.cpp:2103
void SetAlt(const wxString &aAlt)
Definition: sch_pin.h:146
void PlotPinTexts(PLOTTER *aPlotter, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed) const
Plot the pin name and number.
Definition: sch_pin.cpp:1184
VECTOR2I GetLocalPosition() const
Definition: sch_pin.h:197
int GetNumberTextSize() const
Definition: sch_pin.cpp:564
int GetLength() const
Definition: sch_pin.cpp:295
std::optional< bool > m_hidden
Definition: sch_pin.h:369
bool Matches(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) const override
Compare the item against the search criteria in aSearchData.
Definition: sch_pin.cpp:448
void GetMsgPanelInfo(EDA_DRAW_FRAME *aFrame, std::vector< MSG_PANEL_ITEM > &aList) override
Populate aList of MSG_PANEL_ITEM objects with it's internal state for display purposes.
Definition: sch_pin.cpp:1551
std::unique_ptr< PIN_LAYOUT_CACHE > m_layoutCache
The layout cache for this pin.
Definition: sch_pin.h:384
void MirrorVerticallyPin(int aCenter)
Definition: sch_pin.cpp:1472
void validateExtentsCache(KIFONT::FONT *aFont, int aSize, const wxString &aText, EXTENTS_CACHE *aCache) const
Definition: sch_pin.cpp:1736
wxString GetAlt() const
Definition: sch_pin.h:145
bool operator>(const SCH_ITEM &aRhs) const
Definition: sch_pin.h:288
const BOX2I ViewBBox() const override
Return the bounding box of the item covering all its layers.
Definition: sch_pin.cpp:1723
std::vector< int > ViewGetLayers() const override
Return the layers the item is drawn on (which may be more than its "home" layer)
Definition: sch_pin.cpp:1729
const std::map< wxString, ALT > & GetAlternates() const
Definition: sch_pin.h:126
void CalcEdit(const VECTOR2I &aPosition) override
Calculate the attributes of an item at aPosition when it is being edited.
Definition: sch_pin.cpp:2133
void SetNumber(const wxString &aNumber)
Definition: sch_pin.cpp:527
std::optional< int > m_nameTextSize
Definition: sch_pin.h:373
PIN_ORIENTATION PinDrawOrient(const TRANSFORM &aTransform) const
Return the pin real orientation (PIN_UP, PIN_DOWN, PIN_RIGHT, PIN_LEFT), according to its orientation...
Definition: sch_pin.cpp:1374
void SetVisible(bool aVisible)
Definition: sch_pin.h:106
int GetX() const
Definition: sch_pin.h:201
void ChangeLength(int aLength)
Change the length of a pin and adjust its position based on orientation.
Definition: sch_pin.cpp:1418
ALT GetAlt(const wxString &aAlt)
Definition: sch_pin.h:140
void SetX(int aX)
Definition: sch_pin.h:202
bool HasConnectivityChanges(const SCH_ITEM *aItem, const SCH_SHEET_PATH *aInstance=nullptr) const override
Check if aItem has connectivity changes against this object.
Definition: sch_pin.cpp:1766
SCH_PIN & operator=(const SCH_PIN &aPin)
Definition: sch_pin.cpp:229
wxString GetShownNumber() const
Definition: sch_pin.cpp:518
SCH_PIN * m_libPin
Definition: sch_pin.h:358
void Move(const VECTOR2I &aOffset) override
Move the item by aMoveVector to a new position.
Definition: sch_pin.cpp:1446
std::map< const SCH_SHEET_PATH, std::pair< wxString, bool > > m_net_name_map
Definition: sch_pin.h:388
PIN_ORIENTATION m_orientation
Definition: sch_pin.h:366
const wxString & GetOperatingPoint() const
Definition: sch_pin.h:283
void SetOrientation(PIN_ORIENTATION aOrientation)
Definition: sch_pin.h:85
void SetName(const wxString &aName)
Definition: sch_pin.cpp:406
bool IsGlobalPower() const
Return whether this pin forms a global power connection: i.e., is part of a power symbol and of type ...
Definition: sch_pin.cpp:367
wxString getItemDescription(ALT *aAlt) const
Definition: sch_pin.cpp:1837
bool IsVisible() const
Definition: sch_pin.cpp:374
bool ConnectionPropagatesTo(const EDA_ITEM *aItem) const override
Return true if this item should propagate connection info to aItem.
Definition: sch_pin.cpp:1788
std::optional< int > m_numTextSize
Definition: sch_pin.h:372
VECTOR2I GetPinRoot() const
Definition: sch_pin.cpp:588
ELECTRICAL_PINTYPE m_type
Definition: sch_pin.h:368
void SetLibPin(SCH_PIN *aLibPin)
Definition: sch_pin.h:82
void MirrorVertically(int aCenter) override
Mirror item vertically about aCenter.
Definition: sch_pin.cpp:1485
SCH_PIN * GetLibPin() const
Definition: sch_pin.h:81
void SetPosition(const VECTOR2I &aPos) override
Definition: sch_pin.h:198
double Similarity(const SCH_ITEM &aOther) const override
Return a measure of how likely the other object is to represent the same object.
Definition: sch_pin.cpp:2043
bool m_isDangling
Definition: sch_pin.h:378
bool IsConnectable() const override
Definition: sch_pin.h:259
void SetIsDangling(bool aIsDangling)
Definition: sch_pin.cpp:428
wxString GetElectricalTypeName() const
Definition: sch_pin.cpp:353
int GetPenWidth() const override
Definition: sch_pin.h:192
std::map< wxString, ALT > m_alternates
Definition: sch_pin.h:361
const wxString & GetName() const
Definition: sch_pin.cpp:388
wxString GetFriendlyName() const override
Definition: sch_pin.h:76
void SetLength(int aLength)
Definition: sch_pin.h:91
bool IsDangling() const override
Definition: sch_pin.cpp:419
void Plot(PLOTTER *aPlotter, bool aBackground, const SCH_PLOT_OPTS &aPlotOpts, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aDimmed) override
Plot the item to aPlotter.
Definition: sch_pin.cpp:1530
void MirrorHorizontally(int aCenter) override
these transforms have effect only if the pin has a LIB_SYMBOL as parent
Definition: sch_pin.cpp:1465
std::recursive_mutex m_netmap_mutex
The name that this pin connection will drive onto a net.
Definition: sch_pin.h:387
PIN_ORIENTATION GetOrientation() const
Definition: sch_pin.cpp:260
wxString GetClass() const override
Return the class name.
Definition: sch_pin.h:66
void SetNumberTextSize(int aSize)
Definition: sch_pin.cpp:578
void printPinTexts(const RENDER_SETTINGS *aSettings, const VECTOR2I &aPinPos, PIN_ORIENTATION aPinOrient, int aTextInside, bool aDrawPinNum, bool aDrawPinName, bool aDimmed)
Put the pin number and pin text info, given the pin line coordinates.
Definition: sch_pin.cpp:788
void SetShape(GRAPHIC_PINSHAPE aShape)
Definition: sch_pin.h:88
void RotatePin(const VECTOR2I &aCenter, bool aRotateCCW=true)
Definition: sch_pin.cpp:1492
std::map< wxString, ALT > & GetAlternates()
Definition: sch_pin.h:134
VECTOR2I GetPosition() const override
Definition: sch_pin.cpp:252
wxString GetCanonicalElectricalTypeName() const
Definition: sch_pin.cpp:339
bool Replace(const EDA_SEARCH_DATA &aSearchData, void *aAuxData) override
Perform a text replace using the find and replace criteria in aSearchData on items that support text ...
Definition: sch_pin.cpp:461
int GetNameTextSize() const
Definition: sch_pin.cpp:540
wxString GetItemDescription(UNITS_PROVIDER *aUnitsProvider, bool aFull) const override
Return a user-visible description string of this item.
Definition: sch_pin.cpp:1810
VECTOR2I m_position
Definition: sch_pin.h:364
void printPinSymbol(const SCH_RENDER_SETTINGS *aSettings, const VECTOR2I &aPos, PIN_ORIENTATION aOrientation, bool aDimmed)
Print the pin symbol without text.
Definition: sch_pin.cpp:660
wxString m_operatingPoint
Definition: sch_pin.h:376
GRAPHIC_PINSHAPE m_shape
Definition: sch_pin.h:367
int compare(const SCH_ITEM &aOther, int aCompareFlags=0) const override
The pin specific sort order is as follows:
Definition: sch_pin.cpp:1889
wxString GetShownName() const
Definition: sch_pin.cpp:504
static bool ClassOf(const EDA_ITEM *aItem)
Definition: sch_pin.h:71
void MirrorHorizontallyPin(int aCenter)
these transforms have always effects
Definition: sch_pin.cpp:1452
bool HitTest(const VECTOR2I &aPosition, int aAccuracy=0) const override
Test if aPosition is inside or on the boundary of this item.
Definition: sch_pin.cpp:474
PIN_LAYOUT_CACHE & GetLayoutCache() const
Get the layout cache associated with this pin.
Definition: sch_pin.h:297
wxString m_name
Definition: sch_pin.h:370
wxString m_alt
Definition: sch_pin.h:374
void SetOperatingPoint(const wxString &aText)
Definition: sch_pin.h:284
void SetType(ELECTRICAL_PINTYPE aType)
Definition: sch_pin.cpp:329
const wxString & GetBaseName() const
Get the name without any alternates.
Definition: sch_pin.cpp:397
~SCH_PIN()
Definition: sch_pin.cpp:224
void ClearDefaultNetName(const SCH_SHEET_PATH *aPath)
Definition: sch_pin.cpp:1619
void SetY(int aY)
Definition: sch_pin.h:204
void printPinElectricalTypeName(const RENDER_SETTINGS *aSettings, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation, bool aDimmed)
Draw the electrical type text of the pin (only for the footprint editor)
Definition: sch_pin.cpp:965
bool IsPointClickableAnchor(const VECTOR2I &aPos) const override
Definition: sch_pin.h:276
bool IsStacked(const SCH_PIN *aPin) const
Definition: sch_pin.cpp:434
const wxString & GetNumber() const
Definition: sch_pin.h:116
wxString m_number
Definition: sch_pin.h:371
EDA_ITEM * Clone() const override
Create a duplicate of this item with linked list members set to NULL.
Definition: sch_pin.cpp:1409
const BOX2I GetBoundingBox() const override
Return the orthogonal bounding box of this object for display purposes.
Definition: sch_pin.h:174
void Print(const SCH_RENDER_SETTINGS *aSettings, int aUnit, int aBodyStyle, const VECTOR2I &aOffset, bool aForceNoFill, bool aDimmed) override
Print an item.
Definition: sch_pin.cpp:611
wxString GetDefaultNetName(const SCH_SHEET_PATH &aPath, bool aForceNoConnect=false)
Definition: sch_pin.cpp:1630
std::optional< int > m_length
Definition: sch_pin.h:365
GRAPHIC_PINSHAPE GetShape() const
Definition: sch_pin.cpp:274
void PlotPinType(PLOTTER *aPlotter, const VECTOR2I &aPosition, PIN_ORIENTATION aOrientation, bool aDimmed) const
Definition: sch_pin.cpp:1037
int GetY() const
Definition: sch_pin.h:203
ELECTRICAL_PINTYPE GetType() const
Definition: sch_pin.cpp:309
BITMAPS GetMenuImage() const override
Return a pointer to an image to be used in menus.
Definition: sch_pin.cpp:1798
void SetNameTextSize(int aSize)
Definition: sch_pin.cpp:554
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Schematic symbol object.
Definition: sch_symbol.h:77
for transforming drawing coordinates for a wxDC device context.
Definition: transform.h:46
#define _(s)
#define SHOW_ELEC_TYPE
Show pin electrical type. Shared with IS_ROLLOVER.
ELECTRICAL_PINTYPE
The symbol library pin object electrical types used in ERC tests.
Definition: pin_type.h:36
PIN_ORIENTATION
The symbol library pin object orientations.
Definition: pin_type.h:78
GRAPHIC_PINSHAPE
Definition: pin_type.h:57
wxString m_Name
Definition: sch_pin.h:44
GRAPHIC_PINSHAPE m_Shape
Definition: sch_pin.h:45
ELECTRICAL_PINTYPE m_Type
Definition: sch_pin.h:46
KIFONT::FONT * m_Font
Definition: sch_pin.h:304
@ SCH_PIN_T
Definition: typeinfo.h:153