/* * jwg.h.in: * * Copyright (c) 2009 James McKenzie <20@madingley.org>, * All rights reserved. * */ /* * $Id$ */ /* * $Log$ * Revision 1.3 2009/02/08 18:28:31 root * *** empty log message *** * * 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 *** * * */ /* MAKE ABSOLUTELY SURE THAT YOU ARE EDITING THE jwg-head.h.in */ /* FILE FROM WHICH THIS IS GENERATED - OTHERWISE YOUR EDITS */ /* WILL BE LOST */ #ifndef __JWG_H__ #define __JWG_H__ #ifdef __cplusplus extern "C" { #endif #include /*the integer constants here are set by configure*/ /*get uint32_t and friends defined */ #if @I2_HAVE_STDINT_H@ #include #elif @I2_HAVE_SYS_INT_TYPES_H@ #include #endif #if @I2_HAVE_UNISTD_H@ #include #endif /* If the following is <> then configure failed to find where */ /* struct tm was defined - report it as a bug */ /*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; ); 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; );