X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=svgtiny_internal.h;h=84ecf5c31d43f62b2e8484f1b129d1ee228abf0d;hb=280ad258f4d5e5688bd64d98c1ed8ebab903d178;hp=171f5c07ae7eb036e620132bd4e9d170c2100d3e;hpb=6f7443f938b95b5a5b4b66f5e2f8f93415d888b3;p=libsvgtiny.git diff --git a/svgtiny_internal.h b/svgtiny_internal.h index 171f5c0..84ecf5c 100644 --- a/svgtiny_internal.h +++ b/svgtiny_internal.h @@ -37,16 +37,19 @@ struct svgtiny_parse_state { /* gradients */ unsigned int linear_gradient_stop_count; + const char *gradient_x1, *gradient_y1, *gradient_x2, *gradient_y2; struct svgtiny_gradient_stop gradient_stop[svgtiny_MAX_STOPS]; }; /* svgtiny.c */ -void svgtiny_transform_path(float *p, unsigned int n, - struct svgtiny_parse_state *state); +float svgtiny_parse_length(const char *s, int viewport_size, + const struct svgtiny_parse_state state); void svgtiny_parse_color(const char *s, svgtiny_colour *c, struct svgtiny_parse_state *state); struct svgtiny_shape *svgtiny_add_shape(struct svgtiny_parse_state *state); +void svgtiny_transform_path(float *p, unsigned int n, + struct svgtiny_parse_state *state); /* svgtiny_gradient.c */ void svgtiny_find_gradient(const char *id, struct svgtiny_parse_state *state);