Index: trunk/src/layer.h =================================================================== --- trunk/src/layer.h (revision 19350) +++ trunk/src/layer.h (revision 19351) @@ -111,6 +111,7 @@ #include "globalconst.h" #include "global_typedefs.h" #include "attrib.h" +#include "obj_common.h" #include "obj_arc_list.h" #include "obj_line_list.h" #include "obj_poly_list.h" @@ -138,6 +139,7 @@ char *color; /* strdup'd */ int no_drc; /* whether to ignore the layer when checking the design rules */ const char *cookie; /* for UI layers: registration cookie; NULL for unused UI layers */ + pcb_xform_t xform; /* layer specified rendering transformation */ } real; struct { /* A subcircuit layer binding; list data are local but everything else is coming from board layers */ pcb_layer_t *real; /* NULL if unbound */ Index: trunk/src/obj_common.h =================================================================== --- trunk/src/obj_common.h (revision 19350) +++ trunk/src/obj_common.h (revision 19351) @@ -92,6 +92,10 @@ pcb_coord_t X2, Y2; /* and lower right corner */ }; +typedef struct pcb_xform_s { /* generic object transformation */ + pcb_coord_t bloat; /* if non-zero, bloat (positive) or shrink (negative) by this value */ +} pcb_xform_t; + /* Return the user readable name of an object type in a string; never NULL */ const char *pcb_obj_type_name(pcb_objtype_t type);