summaryrefslogtreecommitdiff
path: root/app/bin/drawgeom.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/bin/drawgeom.h')
-rw-r--r--app/bin/drawgeom.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/app/bin/drawgeom.h b/app/bin/drawgeom.h
index 377ebaa..d9f54f8 100644
--- a/app/bin/drawgeom.h
+++ b/app/bin/drawgeom.h
@@ -1,4 +1,6 @@
-
+/** \file drawgeom.h
+ *
+ */
/* XTrkCad - Model Railroad CAD
* Copyright (C) 2005 Dave Bullis
*
@@ -17,6 +19,15 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef HAVE_DRAWGEOM_H
+#define HAVE_DRAWGEOM_H
+
+#include "ccurve.h"
+#include "common.h"
+#include "draw.h"
+#include "track.h"
+#include "wlib.h"
+
#define OP_LINE (0)
#define OP_DIMLINE (1)
#define OP_BENCH (2)
@@ -35,7 +46,8 @@
#define OP_FILLCIRCLE3 (15)
#define OP_FILLBOX (16)
#define OP_FILLPOLY (17)
-#define OP_LAST (OP_FILLPOLY)
+#define OP_BEZLIN (18)
+#define OP_LAST (OP_BEZLIN)
typedef struct {
void (*message)( char *, ... );
@@ -53,6 +65,10 @@ typedef struct {
} drawContext_t;
extern drawContext_t * drawContext;
+extern wDrawColor lineColor;
+extern long lineWidth;
+
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 );
+#endif //HAVE_DRAWGEOM_H \ No newline at end of file