X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxtools.h;h=c2566d37d462a835c345fad88616e263e93aa69e;hb=5ecffaed1b9b648c52ddd99d8c879f6ab1280575;hp=d88b98f1dae0a71064a470022ba7e4c2cb7e9f39;hpb=3d0dfb65e6fdb0bd5b0d0e10dd70495fcbcbd75d;p=swftools.git diff --git a/lib/gfxtools.h b/lib/gfxtools.h index d88b98f..c2566d3 100644 --- a/lib/gfxtools.h +++ b/lib/gfxtools.h @@ -38,6 +38,7 @@ typedef struct _gfxdrawer void (*moveTo)(struct _gfxdrawer*d, gfxcoord_t x, gfxcoord_t y); void (*lineTo)(struct _gfxdrawer*d, gfxcoord_t x, gfxcoord_t y); void (*splineTo)(struct _gfxdrawer*d, gfxcoord_t sx, gfxcoord_t sy, gfxcoord_t x, gfxcoord_t y); + void (*close)(struct _gfxdrawer*d); void* (*result)(struct _gfxdrawer*d); } gfxdrawer_t; @@ -68,6 +69,7 @@ void gfxdraw_conicTo(gfxdrawer_t*draw, double cx, double cy, double tox, double gfxbbox_t gfxline_getbbox(gfxline_t*line); gfxbbox_t gfxbbox_expand_to_point(gfxbbox_t box, gfxcoord_t x, gfxcoord_t y); +void gfxbbox_intersect(gfxbbox_t*box1, gfxbbox_t*box2); void gfxline_transform(gfxline_t*line, gfxmatrix_t*matrix); @@ -83,7 +85,10 @@ gfxfont_t*gfxfontlist_findfont(gfxfontlist_t*list, char*id); char gfxfontlist_hasfont(gfxfontlist_t*list, gfxfont_t*font); void gfxfontlist_free(gfxfontlist_t*list, char deletefonts); -gfxline_t*gfxline_makerectangle(int x1, int y1, int x2, int y2); +gfxbbox_t* gfxline_isrectangle(gfxline_t*_l); + +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); #ifdef __cplusplus