summaryrefslogtreecommitdiff
path: root/kicad/pl-common.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 01:42:11 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-08 01:42:11 -0300
commitf31d15bda0c609910388210d0edbf0bb952afc4a (patch)
treebbe2516a895203c11a765926f33b5f53dee1f05e /kicad/pl-common.h
parent61c29a9d460573cb1095351c8de48c4f985facbe (diff)
downloadeeshow-f31d15bda0c609910388210d0edbf0bb952afc4a.tar.gz
eeshow-f31d15bda0c609910388210d0edbf0bb952afc4a.tar.bz2
eeshow-f31d15bda0c609910388210d0edbf0bb952afc4a.zip
kicad/: support parsing polygons in page layout
Diffstat (limited to 'kicad/pl-common.h')
-rw-r--r--kicad/pl-common.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/kicad/pl-common.h b/kicad/pl-common.h
index 44aa5e0..8d8955f 100644
--- a/kicad/pl-common.h
+++ b/kicad/pl-common.h
@@ -30,17 +30,28 @@ enum page_constraint {
};
+struct pl_point {
+ float x, y;
+ struct pl_point *next;
+};
+
+struct pl_poly {
+ struct pl_point *points;
+ struct pl_poly *next;
+};
+
struct pl_obj {
enum pl_obj_type {
pl_obj_rect,
pl_obj_line,
pl_obj_text,
+ pl_obj_poly,
} type;
enum page_constraint pc;
const char *s; /* tbtext */
int repeat; /* line, rect, tbtext */
- float x, y; /* line, rect, tbtext */
+ float x, y; /* line, rect, tbtext, poly */
int dx, dy;
float ex, ey; /* line, rect; font size for tbtext */
int edx, edy;
@@ -49,7 +60,8 @@ struct pl_obj {
int font; /* tbtext (flags) */
enum text_align hor; /* tbtext */
enum text_align vert; /* tbtext */
- float rotate; /* tbtext */
+ float rotate; /* tbtext, poly */
+ struct pl_poly *poly; /* poly */
struct pl_obj *next;
};