X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=include%2Fsvgtiny.h;h=094d58f3ed403e03a62936cb543760804492d7ec;hb=8e76cd125e02d4c0d09ad34eea8f46c0511704f0;hp=a655d8fcf6e125dac9cefc14a315cc521f9777a7;hpb=f6324470193a321f618516d9d783720ab548f1c0;p=libsvgtiny.git diff --git a/include/svgtiny.h b/include/svgtiny.h index a655d8f..094d58f 100644 --- a/include/svgtiny.h +++ b/include/svgtiny.h @@ -8,8 +8,6 @@ #ifndef SVGTINY_H #define SVGTINY_H -#include - typedef int svgtiny_colour; #define svgtiny_TRANSPARENT 0x1000000 #ifdef __riscos__ @@ -30,7 +28,9 @@ struct svgtiny_shape { char *text; float text_x, text_y; svgtiny_colour fill; + float fill_opacity; /* Between 0.0 and 1.0 */ svgtiny_colour stroke; + float stroke_opacity; /* Between 0.0 and 1.0 */ int stroke_width; }; @@ -47,16 +47,17 @@ struct svgtiny_diagram { typedef enum { svgtiny_OK, svgtiny_OUT_OF_MEMORY, - svgtiny_LIBXML_ERROR, + svgtiny_LIBDOM_ERROR, svgtiny_NOT_SVG, svgtiny_SVG_ERROR, + svgtiny_LIBCSS_ERROR } svgtiny_code; enum { svgtiny_PATH_MOVE, svgtiny_PATH_CLOSE, svgtiny_PATH_LINE, - svgtiny_PATH_BEZIER, + svgtiny_PATH_BEZIER }; struct svgtiny_named_color {