1 /*------------------------------------------------------------------------ 2 * Copyright 2009 (c) Jeff Brown <spadix@users.sourceforge.net> 3 * 4 * This file is part of the ZBar Bar Code Reader. 5 * 6 * The ZBar Bar Code Reader is free software; you can redistribute it 7 * and/or modify it under the terms of the GNU Lesser Public License as 8 * published by the Free Software Foundation; either version 2.1 of 9 * the License, or (at your option) any later version. 10 * 11 * The ZBar Bar Code Reader is distributed in the hope that it will be 12 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty 13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU Lesser Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser Public License 17 * along with the ZBar Bar Code Reader; if not, write to the Free 18 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, 19 * Boston, MA 02110-1301 USA 20 * 21 * http://sourceforge.net/projects/zbar 22 *------------------------------------------------------------------------*/ 23 #ifndef _SVG_H_ 24 #define _SVG_H_ 25 26 #ifdef DEBUG_SVG 27 28 typedef enum { SVG_REL, SVG_ABS } svg_absrel_t; 29 30 void svg_open(const char *name, double x, double y, double w, double h); 31 void svg_close(void); 32 33 void svg_commentf(const char *format, ...); 34 void svg_image(const char *name, double width, double height); 35 36 void svg_group_start(const char *cls, double rotate, 37 double scalex, double scaley, 38 double x, double y); 39 void svg_group_end(void); 40 41 void svg_path_start(const char *cls, double scale, double x, double y); 42 void svg_path_end(void); 43 void svg_path_close(void); 44 void svg_path_moveto(svg_absrel_t abs, double x, double y); 45 void svg_path_lineto(svg_absrel_t abs, double x, double y); 46 47 #else 48 49 # define svg_open(...) 50 # define svg_close(...) 51 52 # define svg_image(...) 53 54 # define svg_group_start(...) 55 # define svg_group_end(...) 56 57 # define svg_path_start(...) 58 # define svg_path_end(...) 59 # define svg_path_moveto(...) 60 # define svg_path_lineto(...) 61 # define svg_path_close(...) 62 63 #endif 64 65 #endif 66