X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=include%2Fsvgtiny.h;h=094d58f3ed403e03a62936cb543760804492d7ec;hb=8e76cd125e02d4c0d09ad34eea8f46c0511704f0;hp=9d685e9b8cbc2fb67ea232e4b5f32a7d8a7712a6;hpb=43b139ddfae30cb636790cd84279f58fe1f4a996;p=libsvgtiny.git diff --git a/include/svgtiny.h b/include/svgtiny.h index 9d685e9..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,9 +47,10 @@ struct svgtiny_diagram { typedef enum { svgtiny_OK, svgtiny_OUT_OF_MEMORY, - svgtiny_LIBXML_ERROR, + svgtiny_LIBDOM_ERROR, svgtiny_NOT_SVG, - svgtiny_SVG_ERROR + svgtiny_SVG_ERROR, + svgtiny_LIBCSS_ERROR } svgtiny_code; enum {