X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxtools.h;h=24deef0e2239b4fd9bd9fea287b87dc7e72aae90;hp=d038e06d577ddce6175f1838147ae3ab2c3badeb;hb=395359a0831639fcc30aab4ea897e23ff8ab420c;hpb=0b38eabf882d8bdcd0e92995e8a2478db9cb5ed8 diff --git a/lib/gfxtools.h b/lib/gfxtools.h index d038e06..24deef0 100644 --- a/lib/gfxtools.h +++ b/lib/gfxtools.h @@ -93,14 +93,28 @@ char gfxfontlist_hasfont(gfxfontlist_t*list, gfxfont_t*font); void* gfxfontlist_getuserdata(gfxfontlist_t*list, const char*id); void gfxfontlist_free(gfxfontlist_t*list, char deletefonts); -void gfximage_save_jpeg(gfximage_t*img, char*filename, int quality); - gfxbbox_t* gfxline_isrectangle(gfxline_t*_l); +gfxbbox_t gfxbbox_expand_to_bbox(gfxbbox_t box, gfxbbox_t box2); gfxline_t*gfxline_makerectangle(double x1, double y1, double x2, double y2); gfxline_t*gfxline_makecircle(double x,double y,double rx, double ry); void gfxline_show(gfxline_t*line, FILE*fi); +void gfxgradient_destroy(gfxgradient_t*gradient); + +typedef struct _gfxparam { + const char*key; + const char*value; + struct _gfxparam* next; +} gfxparam_t; +typedef struct _gfxparams { + gfxparam_t*params; + gfxparam_t*last; +} gfxparams_t; +gfxparams_t* gfxparams_new(); +void gfxparams_store(gfxparams_t*params, const char*name, const char*value); +void gfxparams_free(gfxparams_t*params); + #ifdef __cplusplus } #endif