X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxtools.h;fp=lib%2Fgfxtools.h;h=aa41efff9fcdde0c75463c009ac27275bc7db71e;hp=780cfa68aab33786204de8f9197edd43a025602b;hb=a5c6cfc6f6b4ffdcee8e63116b0c507b0388cac0;hpb=e2413d757c4cad1ebaa68a1966613d95dd04cdfd diff --git a/lib/gfxtools.h b/lib/gfxtools.h index 780cfa6..aa41eff 100644 --- a/lib/gfxtools.h +++ b/lib/gfxtools.h @@ -46,6 +46,12 @@ typedef struct _gfxpoint gfxcoord_t x,y; } gfxpoint_t; +typedef struct _gfxfontlist +{ + gfxfont_t*font; + struct _gfxfontlist*next; +} gfxfontlist_t; + void gfxdrawer_target_gfxline(gfxdrawer_t*d); void gfxtool_draw_dashed_line(gfxdrawer_t*d, gfxline_t*line, float*dashes, float phase); @@ -55,6 +61,7 @@ void gfxline_dump(gfxline_t*l, FILE*fi, char*prefix); gfxline_t* gfxline_append(gfxline_t*line1, gfxline_t*line2); void gfxline_free(gfxline_t*l); gfxline_t* gfxline_clone(gfxline_t*line); +void gfxline_optimize(gfxline_t*line); void gfxdraw_cubicTo(gfxdrawer_t*draw, double c1x, double c1y, double c2x, double c2y, double x, double y, double quality); void gfxdraw_conicTo(gfxdrawer_t*draw, double cx, double cy, double tox, double toy, double quality); @@ -68,6 +75,14 @@ void gfxmatrix_dump(gfxmatrix_t*l, FILE*fi, char*prefix); void gfxmatrix_transform(gfxmatrix_t*m, gfxcoord_t* v1, gfxcoord_t*dest); void gfxmatrix_invert(gfxmatrix_t*src, gfxmatrix_t*dest); +gfxfontlist_t* gfxfontlist_create(); +gfxfontlist_t*gfxfontlist_addfont(gfxfontlist_t*list, gfxfont_t*font); +gfxfont_t*gfxfontlist_findfont(gfxfontlist_t*list, char*id); +char gfxfontlist_hasfont(gfxfontlist_t*list, gfxfont_t*font); + +gfxline_t*gfxline_makerectangle(int x1, int y1, int x2, int y2); +void gfxline_show(gfxline_t*line, FILE*fi); + #ifdef __cplusplus } #endif