]> gitweb.michael.orlitzky.com - libsvgtiny.git/blobdiff - include/svgtiny.h
include/svgtiny.h: add fill_opacity and stroke_opacity to svgtiny_shape
[libsvgtiny.git] / include / svgtiny.h
index 85f146f5e6aa9869e4c6094f9688c396a15c4502..094d58f3ed403e03a62936cb543760804492d7ec 100644 (file)
@@ -28,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,7 +49,8 @@ typedef enum {
        svgtiny_OUT_OF_MEMORY,
        svgtiny_LIBDOM_ERROR,
        svgtiny_NOT_SVG,
-       svgtiny_SVG_ERROR
+       svgtiny_SVG_ERROR,
+       svgtiny_LIBCSS_ERROR
 } svgtiny_code;
 
 enum {