aboutsummaryrefslogtreecommitdiffstats
path: root/src/cd/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cd/defines.h')
-rw-r--r--src/cd/defines.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/cd/defines.h b/src/cd/defines.h
new file mode 100644
index 0000000..7ee5494
--- /dev/null
+++ b/src/cd/defines.h
@@ -0,0 +1,55 @@
+
+/* defines.h: declarations file for the cgmdraw module.
+
+ Written by G. Edward Johnson <mailto:lorax@nist.gov>
+ Date: April 1996
+ Copyright: cd software produced by NIST, an agency of the
+ U.S. government, is by statute not subject to copyright
+ in the United States. Recipients of this software assume all
+ responsibilities associated with its operation, modification
+ and maintenance.
+
+*/
+
+#ifndef CDDEF_H
+#define CDDEF_H 1
+
+#define b0 01
+#define b1 02
+#define b2 04
+#define b3 010
+#define b4 020
+#define b5 040
+#define b6 0100
+#define b7 0200
+#define b8 0400
+#define b9 01000
+#define b10 02000
+#define b11 04000
+#define b12 010000
+#define b13 020000
+#define b14 040000
+#define b15 0100000
+
+/* Defines the default values for different attributes. In general,
+ * these track the CGM specificaition, so changing them is not a good idea.
+ * however, it is generally ok to set them to -1 (undefined) if you want.
+ */
+
+#define CDLTYPE 1
+#define CDLWIDTH 0
+#define CDLCOLOR 1
+#define CDSHAPESTYLE -1
+#define CDSHAPECOLOR 1
+#define CDSHAPEHATCH 1
+#define CDEDGETYPE 1
+#define CDEDGECOLOR -1
+#define CDEDGEWIDTH -1
+#define CDEDGEVIS -1
+#define CDTEXTCOLOR 1
+#define CDTEXTHEIGHT -1
+#define CDTEXTFONT 1
+#define CDTEXTPATH 0
+
+
+#endif