7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 08:51:42 +00:00

Add pin direction comments

Handy when having a crisis of confidence about if
PIN_LEFT means the pin goes left from the connection
point, or goes on the left of the symbol (the first one
and now IDE hover popup confirms it).
This commit is contained in:
John Beard 2024-10-02 23:56:42 +01:00
parent 51e50c1479
commit a055d95f0c

View File

@ -74,10 +74,34 @@ enum class GRAPHIC_PINSHAPE
/**
* The symbol library pin object orientations.
*/
enum class PIN_ORIENTATION {
enum class PIN_ORIENTATION
{
/**
* The pin extends rightwards from the connection point.
* Probably on the left side of the symbol.
* x---|
*/
PIN_RIGHT,
/**
* The pin extends leftwards from the connection point:
* Probably on the right side of the symbol.
* |---x
*/
PIN_LEFT,
/**
* The pin extends upwards from the connection point:
* Probably on the bottom side of the symbol.
* ___
* |
* x
*/
PIN_UP,
/**
* The pin extends downwards from the connection:
* Probably on the top side of the symbol.
* x
* _|_
*/
PIN_DOWN,
INHERIT
};