From 5fa0e4a71f648bfe8e63562d1d035e090a45bb95 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 7 Aug 2007 04:00:17 +0000 Subject: Add path plotter (for SVG). Requires other implementations. svn path=/trunk/netsurf/; revision=3479 --- desktop/plotters.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'desktop') diff --git a/desktop/plotters.h b/desktop/plotters.h index e543aa4ca..6001cb794 100644 --- a/desktop/plotters.h +++ b/desktop/plotters.h @@ -42,10 +42,19 @@ struct plotter_table { bool (*group_start)(const char *name); /** optional */ bool (*group_end)(void); /** optional */ bool (*flush)(void); + bool (*path)(float *p, unsigned int n, colour fill, float width, + colour c, float *transform); }; /** Current plotters, must be assigned before use. */ extern struct plotter_table plot; +enum path_command { + PLOTTER_PATH_MOVE, + PLOTTER_PATH_CLOSE, + PLOTTER_PATH_LINE, + PLOTTER_PATH_BEZIER, +}; + #endif -- cgit v1.2.3