00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef USERSHAPE_H
00018 #define USERSHAPE_H
00019
00020 #include "cdt.h"
00021
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025
00026 typedef enum { FT_NULL,
00027 FT_BMP, FT_GIF, FT_PNG, FT_JPEG,
00028 FT_PDF, FT_PS, FT_EPS, FT_SVG, FT_XML
00029 } imagetype_t;
00030
00031 typedef enum {
00032 IMAGESCALE_FALSE,
00033 IMAGESCALE_TRUE,
00034 IMAGESCALE_WIDTH,
00035 IMAGESCALE_HEIGHT,
00036 IMAGESCALE_BOTH
00037 } imagescale_t;
00038
00039 typedef struct usershape_s usershape_t;
00040
00041 struct usershape_s {
00042 Dtlink_t link;
00043 char *name;
00044 int macro_id;
00045 boolean must_inline;
00046 FILE *f;
00047 imagetype_t type;
00048 char *stringtype;
00049 int x, y, w, h, dpi;
00050 void *data;
00051 size_t datasize;
00052 void (*datafree)(usershape_t *us);
00053 };
00054
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058 #endif