comparison pads2gpcb/struct.h @ 40:1c37bec20596

pads2gpcb: slowly working on the decal processing logic
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Mon, 11 Jan 2016 08:12:40 +0000
parents aa0539cc3d41
children 4a50888d09ce
comparison
equal deleted inserted replaced
39:242f73e61ef0 40:1c37bec20596
1 struct pad_shape_info {
2 int valid;
3 int rounded;
4 int elongated;
5 long short_dim;
6 long long_dim;
7 int angle;
8 };
9
1 struct footprint_pad { 10 struct footprint_pad {
2 long x1; 11 long x1;
3 long y1; 12 long y1;
4 long x2; 13 long x2;
5 long y2; 14 long y2;
6 long thickness; 15 long thickness;
7 long clearance; 16 long clearance;
8 long mask; 17 long mask;
9 int is_square; 18 struct pad_shape_info shape;
10 }; 19 };
11 20
12 struct footprint_body { 21 struct footprint_body {
13 size_t copysize;
14 int src_units; 22 int src_units;
15 int npins; 23 int npins;
16 struct footprint_pad *pins; 24 struct footprint_pad *pins;
25 struct pad_shape_info default_pad;
17 long mark_x; 26 long mark_x;
18 long mark_y; 27 long mark_y;
19 long refdes_x; 28 long refdes_x;
20 long refdes_y; 29 long refdes_y;
21 long refdes_dir; 30 long refdes_dir;
22 long refdes_scale; 31 long refdes_scale;
23 }; 32 };
24 33
25 struct part_decal { 34 struct part_decal {
26 char *name; 35 char *name;
27 struct footprint_body *fpbody; 36 struct footprint_body *body;
28 struct part_decal *next; 37 struct part_decal *next;
29 }; 38 };
30 39
31 #define MAX_DECALS_PER_PART_TYPE 16 40 #define MAX_DECALS_PER_PART_TYPE 16
32 41