summaryrefslogtreecommitdiff
path: root/app/bin/drawgeom.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 16:52:56 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 16:52:56 +0100
commit7b358424ebad9349421acd533c2fa1cbf6cf3e3e (patch)
tree686678532eefed525c242fd214d0cfb2914726c5 /app/bin/drawgeom.h
Initial import of xtrkcad version 1:4.0.2-2
Diffstat (limited to 'app/bin/drawgeom.h')
-rw-r--r--app/bin/drawgeom.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/app/bin/drawgeom.h b/app/bin/drawgeom.h
new file mode 100644
index 0000000..377ebaa
--- /dev/null
+++ b/app/bin/drawgeom.h
@@ -0,0 +1,58 @@
+
+/* XTrkCad - Model Railroad CAD
+ * Copyright (C) 2005 Dave Bullis
+ *
+ * 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.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#define OP_LINE (0)
+#define OP_DIMLINE (1)
+#define OP_BENCH (2)
+#define OP_TBLEDGE (3)
+#define OP_CURVE1 (4)
+#define OP_CURVE2 (5)
+#define OP_CURVE3 (6)
+#define OP_CURVE4 (7)
+#define OP_CIRCLE1 (8)
+#define OP_CIRCLE2 (9)
+#define OP_CIRCLE3 (10)
+#define OP_BOX (11)
+#define OP_POLY (12)
+#define OP_FILLCIRCLE1 (13)
+#define OP_FILLCIRCLE2 (14)
+#define OP_FILLCIRCLE3 (15)
+#define OP_FILLBOX (16)
+#define OP_FILLPOLY (17)
+#define OP_LAST (OP_FILLPOLY)
+
+typedef struct {
+ void (*message)( char *, ... );
+ void (*Redraw)( void );
+ drawCmd_t *D;
+ long Op;
+ wDrawColor Color;
+ long Width;
+ long benchOption;
+ int State;
+ curveData_t ArcData;
+ ANGLE_T ArcAngle;
+ int Started;
+ BOOL_T Changed;
+ } drawContext_t;
+
+extern drawContext_t * drawContext;
+void DrawGeomOp( void * );
+STATUS_T DrawGeomMouse( wAction_t, coOrd, drawContext_t * );
+STATUS_T DrawGeomModify( coOrd, ANGLE_T, wIndex_t, trkSeg_p, wAction_t, coOrd, wBool_t );