view 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
line wrap: on
line source

struct pad_shape_info {
	int	valid;
	int	rounded;
	int	elongated;
	long	short_dim;
	long	long_dim;
	int	angle;
};

struct footprint_pad {
	long	x1;
	long	y1;
	long	x2;
	long	y2;
	long	thickness;
	long	clearance;
	long	mask;
	struct	pad_shape_info shape;
};

struct footprint_body {
	int	src_units;
	int	npins;
	struct	footprint_pad *pins;
	struct	pad_shape_info default_pad;
	long	mark_x;
	long	mark_y;
	long	refdes_x;
	long	refdes_y;
	long	refdes_dir;
	long	refdes_scale;
};

struct part_decal {
	char	*name;
	struct	footprint_body *body;
	struct	part_decal *next;
};

#define	MAX_DECALS_PER_PART_TYPE	16

struct part_type {
	char	*name;
	int	ndecals;
	struct	part_decals *decals[MAX_DECALS_PER_PART_TYPE];
	char	**alpha_pins;
	struct	part_type *next;
};