From a25164b25fb68bd329c1ba9689ba894cb1c5e9b8 Mon Sep 17 00:00:00 2001 From: root <> Date: Sun, 8 Feb 2009 17:25:48 +0000 Subject: *** empty log message *** --- src/jwg-head.h.in | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) (limited to 'src/jwg-head.h.in') 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 +#include + +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; + -- cgit v1.2.3