Ejemplo n.º 1
0
        public void Parse(String txt)
        {
            switch (txt)
            {
            case "~":
                break;

            case "NonLogic":
            case "N":
                Value = PinShape.NonLogic;
                break;

            case "Inverted":
            case "I":
                Value = PinShape.Inverted;
                break;

            case "Clock":
            case "C":
                Value = PinShape.Clock;
                break;

            case "InvertedClock":
            case "IC":
                Value = PinShape.InvertedClock;
                break;

            case "InputLow":
            case "L":
                Value = PinShape.InputLow;
                break;

            case "ClockLow":
            case "CL":
                Value = PinShape.ClockLow;
                break;

            case "OutputLow":
            case "V":
                Value = PinShape.OutputLow;
                break;

            case "FallingEdge":
            case "F":
                Value = PinShape.FallingEdge;
                break;

            case "Line":
            case "":
                Value = PinShape.Line;
                break;

            default:
                throw new Exception("KicadPinShape parse error.");
            }
        }
Ejemplo n.º 2
0
 public static void BeginOutputAttribute(int id, PinShape shape)
 {
     imnodesNative.imnodes_BeginOutputAttribute(id, shape);
 }
Ejemplo n.º 3
0
        public static void BeginOutputAttribute(int id)
        {
            PinShape shape = PinShape._CircleFilled;

            imnodesNative.imnodes_BeginOutputAttribute(id, shape);
        }
Ejemplo n.º 4
0
 public KicadLibPinShape(PinShape fill)
 {
     Value = fill;
 }
Ejemplo n.º 5
0
 public static extern void imnodes_BeginOutputAttribute(int id, PinShape shape);