aboutsummaryrefslogtreecommitdiffstats
path: root/src/jwg-head.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/jwg-head.h.in')
-rw-r--r--src/jwg-head.h.in87
1 files changed, 87 insertions, 0 deletions
diff --git a/src/jwg-head.h.in b/src/jwg-head.h.in
index 117526d..65d5213 100644
--- a/src/jwg-head.h.in
+++ b/src/jwg-head.h.in
@@ -12,6 +12,9 @@
/*
* $Log$
+ * Revision 1.2 2009/02/08 17:25:48 root
+ * *** empty log message ***
+ *
* Revision 1.1 2009/02/08 16:25:32 root
* *** empty log message ***
*
@@ -48,3 +51,87 @@ extern "C" {
/*get struct tm defined*/
#include <@I2_TM_H@>
+
+
+#include <string.h>
+#include <gobj.h>
+
+typedef struct {
+ float x,y;
+} Jwgpos;
+
+typedef struct {
+ Jwgpos *data;
+ int npts;
+} Jwgline;
+
+
+typedef struct {
+ float xc,yc;
+ float a,b,c,d;
+ float det;
+} Transform;
+
+OBJECT(Data,
+ int w;
+ int h;
+ int l;
+ float *data;
+);
+
+extern void Data_Destructor(Data);
+
+CONSTRUCTOR(Data)=GObj_DefaultConstructor;
+DESTRUCTOR(Data)=Data_Destructor;
+
+typedef struct {
+ float r,g,b;
+} Color;
+
+typedef struct {
+ float width;
+ Color color;
+} Pen;
+
+typedef struct {
+ float density;
+ Color color;
+} Brush;
+
+typedef struct {
+ int font;
+ Color color;
+ float height;
+} Ink;
+
+
+#define JWG_FM_XFIG 0
+#define JWG_FM_CGM 1
+
+#define JWG_DEFAULT_LINE_SIZE 4096
+
+OBJECT(Handle,
+ int serial;
+
+ struct Handle_struct *stack;
+
+ Data data;
+ Transform transform;
+
+ Brush brush;
+ Pen pen;
+ Ink ink;
+
+ int format;
+ FILE *file;
+
+ Jwgline current_line;
+ int current_line_size;
+
+ void *private;
+);
+extern void Handle_Destructor(Handle);
+
+CONSTRUCTOR(Handle)=GObj_DefaultConstructor;
+DESTRUCTOR(Handle)=Handle_Destructor;
+