CF flags
authoryu.dongliang <18588496441@163.com>
Wed, 18 Oct 2023 04:15:11 +0000 (12:15 +0800)
committeryu.dongliang <18588496441@163.com>
Wed, 18 Oct 2023 04:15:11 +0000 (12:15 +0800)
scf_eda_pb.h
ses_layout.c

index 059f2b6baa20bd999e39c2cade80e2bf297244b6..21fc713c02832691cd98fbb10b8b26cc6fa41088 100644 (file)
@@ -22,6 +22,7 @@ enum {
 #define SCF_EDA_PIN_OUT   2
 #define SCF_EDA_PIN_POS   4
 #define SCF_EDA_PIN_NEG   8
+#define SCF_EDA_PIN_CF   16
 
 #define SCF_EDA_V_INIT   -10001001.0
 #define SCF_EDA_V_MIN    -10000000.0
@@ -147,4 +148,7 @@ void           scf_eboard__free        (ScfEboard* b);
                        return ret; \
        } while (0)
 
+#define EDA_PIN_ADD_PIN_EF(_ef, _p0, _p1) \
+       EDA_PIN_ADD_PIN((_ef)->components[(_p0)->cid], (_p0)->id, (_ef)->components[(_p1)->cid], (_p1)->id)
+
 #endif
index dd4a6f20ba34f60e3546650ca9474e763daad431..c3e593eab3ca24c5a1818e397191faf32fef43eb 100644 (file)
@@ -965,7 +965,7 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
                for (j = 0; j < f->n_elines; j++) {
                        el =        f->elines[j];
 
-                       cairo_set_line_width(cr, 3);
+                       cairo_set_line_width(cr, 4);
 
                        if (SCF_EDA_PIN_POS & el->flags)
                                cairo_set_source_rgb(cr, 1, 0, 0);
@@ -978,7 +978,11 @@ int ses_layout_draw(ScfEboard* b, uint32_t bx, uint32_t by, uint32_t bw, uint32_
 
                        else if (SCF_EDA_PIN_OUT & el->flags)
                                cairo_set_source_rgb(cr, 1, 0, 1);
-                       else {
+
+                       else if (SCF_EDA_PIN_CF & el->flags) {
+                               cairo_set_source_rgb(cr, 1, 0.1, 0.8);
+                               cairo_set_line_width(cr, 2.5);
+                       } else {
                                cairo_set_source_rgb(cr, 1, 0.5, 0.1);
                                cairo_set_line_width(cr, 2);
                        }