diff options
author | James Bursa <james@netsurf-browser.org> | 2008-02-18 20:47:03 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2008-02-18 20:47:03 +0000 |
commit | 6f7443f938b95b5a5b4b66f5e2f8f93415d888b3 (patch) | |
tree | 5ceb38bd7da19d9c315c3218fb6fb8bf64ec5c2f /svgtiny.h | |
parent | 307db5bbbc3b9c143aa99f61289dd39e65583c23 (diff) | |
download | libsvgtiny-6f7443f938b95b5a5b4b66f5e2f8f93415d888b3.tar.gz libsvgtiny-6f7443f938b95b5a5b4b66f5e2f8f93415d888b3.tar.bz2 |
Linear gradients, part 1.
svn path=/trunk/libsvgtiny/; revision=3861
Diffstat (limited to 'svgtiny.h')
-rw-r--r-- | svgtiny.h | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -14,8 +14,14 @@ typedef int svgtiny_colour; #define svgtiny_TRANSPARENT 0x1000000 #ifdef riscos #define svgtiny_RGB(r, g, b) ((b) << 16 | (g) << 8 | (r)) +#define svgtiny_RED(c) ((c) & 0xff) +#define svgtiny_GREEN(c) (((c) >> 8) & 0xff) +#define svgtiny_BLUE(c) (((c) >> 16) & 0xff) #else #define svgtiny_RGB(r, g, b) ((r) << 16 | (g) << 8 | (b)) +#define svgtiny_RED(c) (((c) >> 16) & 0xff) +#define svgtiny_GREEN(c) (((c) >> 8) & 0xff) +#define svgtiny_BLUE(c) ((c) & 0xff) #endif struct svgtiny_shape { @@ -33,6 +39,9 @@ struct svgtiny_diagram { struct svgtiny_shape *shape; unsigned int shape_count; + + unsigned short error_line; + const char *error_message; }; typedef enum { @@ -40,6 +49,7 @@ typedef enum { svgtiny_OUT_OF_MEMORY, svgtiny_LIBXML_ERROR, svgtiny_NOT_SVG, + svgtiny_SVG_ERROR, } svgtiny_code; enum { @@ -61,7 +71,4 @@ svgtiny_code svgtiny_parse(struct svgtiny_diagram *diagram, int width, int height); void svgtiny_free(struct svgtiny_diagram *svg); -const struct svgtiny_named_color * -svgtiny_color_lookup (register const char *str, register unsigned int len); - #endif |