summaryrefslogtreecommitdiff
path: root/kicad/dwg.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-24 14:07:45 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-24 14:19:21 -0300
commitbd9943d473ab96c5d37b0944ed33a1f6766d62e5 (patch)
tree59f27d8fa71f981928293bc8e55e7c0415d08db2 /kicad/dwg.h
parentc58e2ecd39de8f433c787a8feb558509e664ac88 (diff)
downloadeeshow-bd9943d473ab96c5d37b0944ed33a1f6766d62e5.tar.gz
eeshow-bd9943d473ab96c5d37b0944ed33a1f6766d62e5.tar.bz2
eeshow-bd9943d473ab96c5d37b0944ed33a1f6766d62e5.zip
remove global gfx state (pass context as argument)
Diffstat (limited to 'kicad/dwg.h')
-rw-r--r--kicad/dwg.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/kicad/dwg.h b/kicad/dwg.h
index 2875b48..be1ac60 100644
--- a/kicad/dwg.h
+++ b/kicad/dwg.h
@@ -14,6 +14,9 @@
#ifndef KICAD_DWG_H
#define KICAD_DWG_H
+#include "gfx/gfx.h"
+
+
enum dwg_shape {
dwg_unspec, // UnSpc
dwg_in, // Input
@@ -28,21 +31,21 @@ struct dwg_bbox {
};
-void dwg_label(int x, int y, const char *s, int dir, int dim,
+void dwg_label(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
enum dwg_shape shape, struct dwg_bbox *bbox);
-void dwg_hlabel(int x, int y, const char *s, int dir, int dim,
+void dwg_hlabel(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
enum dwg_shape shape, struct dwg_bbox *bbox);
-void dwg_glabel(int x, int y, const char *s, int dir, int dim,
+void dwg_glabel(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
enum dwg_shape shape, struct dwg_bbox *bbox);
-void dwg_text(int x, int y, const char *s, int dir, int dim,
+void dwg_text(struct gfx *gfx, int x, int y, const char *s, int dir, int dim,
enum dwg_shape shape, struct dwg_bbox *bbox);
-void dwg_junction(int x, int y);
-void dwg_noconn(int x, int y);
+void dwg_junction(struct gfx *gfx, int x, int y);
+void dwg_noconn(struct gfx *gfx, int x, int y);
-void dwg_line(int sx, int sy, int ex, int ey);
+void dwg_line(struct gfx *gfx, int sx, int sy, int ex, int ey);
-void dwg_wire(int sx, int sy, int ex, int ey);
-void dwg_bus(int sx, int sy, int ex, int ey);
+void dwg_wire(struct gfx *gfx, int sx, int sy, int ex, int ey);
+void dwg_bus(struct gfx *gfx, int sx, int sy, int ex, int ey);
#endif /* !KICAD_DWG_H */