head 1.6; access; symbols; locks; strict; comment @ * @; 1.6 date 2005.05.11.21.15.31; author otaylor; state Exp; branches; next 1.5; commitid 4fe428275f24567; 1.5 date 2005.02.01.22.58.09; author krh; state Exp; branches; next 1.4; 1.4 date 2005.01.11.22.38.03; author pippin; state Exp; branches; next 1.3; 1.3 date 2004.05.20.13.17.20; author pippin; state Exp; branches; next 1.2; 1.2 date 2004.05.19.18.11.24; author pippin; state Exp; branches; next 1.1; 1.1 date 2004.05.16.19.09.50; author pippin; state Exp; branches; next ; desc @@ 1.6 log @2005-05-11 Owen Taylor * cairo_snippets_png.c cairo_snippets_ps.c cairo_snippets_win32.c snippets/*.cairo: Cairo API updates. * snippets.h: Remove a stray png-io.h include. * snippets/pattern_fill.cairo: Remove some unused extern @ text @/* interface to autogenerated snippets.c file */ /* cairo_snippets (c) Øyvind Kolås 2004, released to the public domain */ #ifndef SNIPPETS_H #define SNIPPETS_H #include #include #include /* header files available for snippet usage */ #include #include /* number of available snippets */ extern int snippet_count; /* the basename of the snippets */ extern const char *snippet_name[]; /* the source for each of the snippets */ extern const char *snippet_source[]; /* run a snippet */ void snippet_do (cairo_t *cr, int snippet_no, int width, int height); /* utility function mapping a snippet name to a snippet number */ int snippet_name2no (const char *name); /* normalize the coordinate system of the cairo drawable to a unit square, * also sets the line width to 0.04 */ void snippet_normalize (cairo_t *cr, double width, double height); void snippet_set_bg_png (cairo_t *cr, const char *file); void snippet_set_bg_svg (cairo_t *cr, const char *file); #endif /* SNIPPETS_H */ @ 1.5 log @2005-02-01 Kristian Høgsberg * autotool this thing, move *.cairo into snippets/ and webpage related files into html/. @ text @a12 1 #include "png_io.h" @ 1.4 log @added normalization function, and removed then redundant initialization code from snippets @ text @d7 2 @ 1.3 log @added visual explaination for the parameters of the cairo_arc function @ text @d26 4 a29 1 snippet_do (cairo_t *cr, int snippet_no); d35 8 @ 1.2 log @added operator tests, and snipepts.ps, snippets.pdf to .cvsignore @ text @d35 3 @ 1.1 log @initial import of cairo_snippets @ text @d32 3 @