summaryrefslogtreecommitdiff
path: root/dwg.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwg.h')
-rw-r--r--dwg.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/dwg.h b/dwg.h
new file mode 100644
index 0000000..697f524
--- /dev/null
+++ b/dwg.h
@@ -0,0 +1,46 @@
+/*
+ * dwg.h - Complex drawing functions
+ *
+ * Written 2016 by Werner Almesberger
+ * Copyright 2016 by Werner Almesberger
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+
+
+#ifndef DWG_H
+#define DWG_H
+
+#include "fig.h"
+
+
+enum dwg_shape {
+ dwg_unspec, // UnSpc
+ dwg_in, // Input
+ dwg_out, // Output
+ dwg_tri, // 3State
+ dwg_bidir, // Bidirectional
+};
+
+
+void dwg_label(int x, int y, const char *s, int dir, int dim,
+ enum dwg_shape shape);
+void dwg_hlabel(int x, int y, const char *s, int dir, int dim,
+ enum dwg_shape shape);
+void dwg_glabel(int x, int y, const char *s, int dir, int dim,
+ enum dwg_shape shape);
+void dwg_text(int x, int y, const char *s, int dir, int dim,
+ enum dwg_shape shape);
+
+void dwg_junction(int x, int y);
+void dwg_noconn(int x, int y);
+
+void dwg_line(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);
+
+#endif /* !DWG_H */