head 1.42; access; symbols; locks; strict; comment @# @; 1.42 date 2005.06.17.18.11.48; author krh; state Exp; branches; next 1.41; commitid 6b4d42b312604567; 1.41 date 2005.06.03.19.09.35; author krh; state Exp; branches; next 1.40; commitid 629942a0aaec4567; 1.40 date 2005.05.16.19.10.42; author krh; state Exp; branches; next 1.39; commitid 655b4288f02f4567; 1.39 date 2005.05.13.22.36.19; author pippin; state Exp; branches; next 1.38; commitid 244f42852be14567; 1.38 date 2005.05.13.16.33.59; author krh; state Exp; branches; next 1.37; commitid 2d4f4284d6f34567; 1.37 date 2005.05.12.09.49.20; author stevech1097; state Exp; branches; next 1.36; commitid 5f1f4283269f4567; 1.36 date 2005.05.11.23.05.36; author otaylor; state Exp; branches; next 1.35; commitid 2e2142828fc04567; 1.35 date 2005.05.11.23.04.57; author otaylor; state Exp; branches; next 1.34; commitid 2da942828f964567; 1.34 date 2005.05.11.21.15.31; author otaylor; state Exp; branches; next 1.33; commitid 4fe428275f24567; 1.33 date 2005.05.03.02.22.48; author krh; state Exp; branches; next 1.32; commitid 33124276e0734567; 1.32 date 2005.04.21.21.01.37; author cworth; state Exp; branches; next 1.31; commitid 1b2e426814b04567; 1.31 date 2005.04.02.02.03.59; author cworth; state Exp; branches; next 1.30; 1.30 date 2005.03.04.18.39.36; author otaylor; state Exp; branches; next 1.29; 1.29 date 2005.02.24.16.21.01; author otaylor; state Exp; branches; next 1.28; 1.28 date 2005.02.06.22.37.00; author pippin; state Exp; branches; next 1.27; 1.27 date 2005.02.06.22.26.22; author pippin; state Exp; branches; next 1.26; 1.26 date 2005.02.02.05.57.10; author otaylor; state Exp; branches; next 1.25; 1.25 date 2005.02.02.04.46.43; author krh; state Exp; branches; next 1.24; 1.24 date 2005.02.01.22.58.09; author krh; state Exp; branches; next 1.23; 1.23 date 2005.02.01.00.36.10; author otaylor; state Exp; branches; next 1.22; 1.22 date 2005.01.20.16.34.24; author cworth; state Exp; branches; next 1.21; 1.21 date 2005.01.11.22.38.03; author pippin; state Exp; branches; next 1.20; 1.20 date 2005.01.05.22.32.30; author krh; state Exp; branches; next 1.19; 1.19 date 2004.10.13.18.24.11; author cworth; state Exp; branches; next 1.18; 1.18 date 2004.08.03.18.44.59; author cworth; state Exp; branches; next 1.17; 1.17 date 2004.06.07.01.02.35; author pippin; state Exp; branches; next 1.16; 1.16 date 2004.06.04.15.37.27; author cworth; state Exp; branches; next 1.15; 1.15 date 2004.05.26.21.04.18; author pippin; state Exp; branches; next 1.14; 1.14 date 2004.05.21.22.37.56; author pippin; state Exp; branches; next 1.13; 1.13 date 2004.05.20.14.33.23; author pippin; state Exp; branches; next 1.12; 1.12 date 2004.05.19.18.11.24; author pippin; state Exp; branches; next 1.11; 1.11 date 2004.05.19.15.17.09; author cworth; state Exp; branches; next 1.10; 1.10 date 2004.05.19.15.10.38; author cworth; state Exp; branches; next 1.9; 1.9 date 2004.05.19.09.39.00; author pippin; state Exp; branches; next 1.8; 1.8 date 2004.05.18.21.54.57; author pippin; state Exp; branches; next 1.7; 1.7 date 2004.05.18.19.57.17; author pippin; state Exp; branches; next 1.6; 1.6 date 2004.05.18.15.21.30; author pippin; state Exp; branches; next 1.5; 1.5 date 2004.05.18.13.09.21; author pippin; state Exp; branches; next 1.4; 1.4 date 2004.05.18.12.50.39; author pippin; state Exp; branches; next 1.3; 1.3 date 2004.05.18.12.47.41; author pippin; state Exp; branches; next 1.2; 1.2 date 2004.05.18.02.34.16; 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.42 log @2005-06-17 Kristian Høgsberg * snippets/text.cairo: Close the path between the circles. @ text @2005-06-17 Kristian Høgsberg * snippets/text.cairo: Close the path between the circles. 2005-06-03 Kristian Høgsberg * cairo_snippets_html.c: Update html snippets. * snippets/pattern_fill.cairo: Remove this, was accidentally committed. 2005-05-16 Kristian Høgsberg * cairo_snippets_pdf.c (main): Use new PDF constructor (filename instaed of FILE). 2005-05-14 Øyvind Kolås * cairo_snippets_png.c: reordered surface and cr destruction calls. 2005-05-13 Kristian Høgsberg * cairo_snippets_pdf.c (main): Use new PDF constructor. 2005-05-12 Steve Chaplin * cairo_snippets_png.c: remove #include 2005-05-11 Owen Taylor * cairo_snippets_win32.c (on_paint): Remove a stray cairo_new_path() that is no longer needed. 2005-05-11 Owen Taylor * cairo_snippets_pdf.c (main): API update. 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 prototypes that were breaking compilation. 2005-05-02 Kristian Høgsberg * png_io.c: * png_io.h: * cairo_snippets_png.c: * Makefile.am: Drop custom PNG IO functions and use cairo's new PNG functions. * prepare_snippets.c: * snippets/clip_image.cairo: * snippets/curve_rectangle.cairo: * snippets/fill_and_stroke.cairo: * snippets/fill_and_stroke2.cairo: * snippets/image.cairo: * snippets/imagepattern.cairo: * snippets/libsvg.cairo: * snippets/text.cairo: Port to cairos new group semantics by using cairo_fill_preserve() instead of cairo_save()/cairo_restore() to keep the current path after filling it. Use cairo_image_surface_create_from_png() to load png files. Fix pointer signedness in a couple of places. 2005-04-22 Carl Worth * cairo_snippets_pdf.c: * cairo_snippets_ps.c: * prepare_snippets.c: (make_util): * snippets/arc.cairo: * snippets/arc_negative.cairo: * snippets/curve_rectangle.cairo: * snippets/curve_to.cairo: * snippets/operator_add.cairo: * snippets/operator_atop.cairo: * snippets/operator_atop_reverse.cairo: * snippets/operator_in.cairo: * snippets/operator_in_reverse.cairo: * snippets/operator_out.cairo: * snippets/operator_out_reverse.cairo: * snippets/operator_over.cairo: * snippets/operator_over_reverse.cairo: * snippets/operator_saturate.cairo: * snippets/operator_xor.cairo: * snippets/text.cairo: * snippets/text_align_center.cairo: * snippets/text_extents.cairo: Update for changes in the cairo API, including: Use 72.0 scale factor instead of 96.0 Use unsigned char as appropriate Use cairo_set_source_rgba instead of cairo_set_rgb_color and cairo_set_alpha. 2005-04-01 Carl Worth * cairo_snippets_png.c: (snippet_do_png): Track removal of cairo_set_target_png. 2005-03-04 Owen Taylor * cairo_snippets_png.c (snippet_do_png): Open output file with "wb". 2005-02-24 Owen Taylor * configure.ac Makefile.am: Build the PDF and Win32 backends conditionally. * autogen.sh: Replace with something more comprehensive based on the Cairo version. * configure.ac: Add AC_CONFIG_HEADERS * cairo_snippets_ps.c: Include 2005-02-06 Øyvind Kolås * Makefile.am: added cflags to the cairo_snippets_gtk target. 2005-02-06 Øyvind Kolås * autogen.sh: added 2005-02-02 Owen Taylor * cairo_snippets_win32.c (WndProc): Add a missing return. * configure.ac: remove unneeded AC_ISC_POSIX. 2005-02-01 Kristian Høgsberg * snippets/curve_rectangle.cairo: Fix clash between global width and height parameters and rectangle width and height. * autotool this thing, move *.cairo into snippets/ and webpage related files into html/. 2005-01-31 Owen Taylor * cairo_snippets_win32.c: Add a Windows version of the snippets wrapper. * Makefile (CFLAGS): Add a rule for cairo_snippets_win32; won't work without some extra editing. 2005-01-20 Carl Worth * Makefile (CFLAGS): Actually use the settings of CFLAGS when compiling. 2005-01-11 Øyvind Kolås * prepare_snippets.c * snippets.h: Added snippets_normalize () function. * *.cairo: Added snippets_normalize (cr, width, height) before drawing to all snippets. * cairo_snippets_*.c: Removed common initialization. * cairo_snippets_pdf.c: * cairo_snippets_ps.c: Changed to use a 2x2 in test area. * Makefile: Changed destination folder for publishing of snippets on the web. 2005-01-05 Kristian Høgsberg * Makefile (COMPILE_PROGS): Reenable PDF snippets. * cairo_snippets_pdf.c (main): Add feature to only output specific snippets. 2004-09-6 Owen Taylor * cairo_snippets_html.c (do_index): index() is a C library function, rename to do_index(). * Makefile: Add -g -Wall -O2, to get good warnings. * cairo_snippets_html.c prepare_snippets.c: Fix warnings. * cairo_snippets_png.c: Allow individual snippet names to be specified on the command line. 2004-08-03 Carl Worth * xxx_clip_rectangle.cairo: Added test to deomnstrate current bug in rectangle-based clipping. 2004-07-04 OEyvind Kolaas * prepare_snippets.c : escape back slash correctly 2004-06-04 Carl Worth * operator_add.cairo, operator_atop.cairo, operator_atop_reverse.cairo, operator_in.cairo, operator_in_reverse.cairo, operator_out.cairo, operator_out_reverse.cairo, operator_over.cairo, operator_over_reverse.cairo, operator_saturate.cairo, operator_xor.cairo: Set alpha to 0.5 for more interesting results. 2004-05-26 OEyvind Kolaas * text_centering.cairo: removed * text_align_center.cairo: added * text_align_right.cairo: added * text_extents: added 2004-05-20 OEyvind Kolaas * index.html_template: main page for the snippet pages * renamed header.html->header.html_template * renamed footer.html->footer.html_template * cairo_snippets_html.c : added seperate pages for each snippet * .cvsignore: added *.html * Makefile: added *.html to clean 2004-05-19 OEyvind Kolaas * operator_*.cairo: added tests for compositing modes. * .cvsignore: added snippets.ps and snippets.pdf 2004-05-19 Carl Worth * header.html: Give attribution to Øyvind Kolås for original creation of snippets. * .cvsignore: Add .cvsignore to ignore auto-generated files. 2004-05-18 OEyvind Kolaas * curve_rectangle.cairo: added a custom shape snippet, which also tests storking with alpha 2004-05-18 OEyvind Kolaas * Makefile: general cleanup, added target html * cairo_snippets_png.c: removed html stuff * cairo_snippets_html.c: seperated out the html index generator * header.html: header for the webpage * footer.html: footer for the webpage * README: added more information 2004-05-18 OEyvind Kolaas * xxx_clipping.cairo xxx_image_clipping.cairo: removed * clipping.cairo image_clipping.cairo: added Awaiting commit of the changes which lead to this ;) 2004-05-18 OEyvind Kolaas * cairo_snippets_ps.c: added postscript with basis in the pdf version 2004-05-18 OEyvind Kolaas * cairo_snippets_gtk.c: removed STRIDE define 2004-05-18 OEyvind Kolaas * cairo_snippets_pdf.c: code cleanup 2004-05-18 OEyvind Kolaas * cairo_snippets_png.c: code cleanup, change to use the actual png backend instead of using the png writing function in png_io. * png_io.[ch]: removed png writing function 2004-05-18 OEyvind Kolaas * cairo_snippets_pdf.c, Makefile: added pdf backend, initially commented out in Makefile 2004-05-16 OEyvind Kolaas Initial import /* vim: set ts=4 noet : */ @ 1.41 log @2005-06-03 Kristian Høgsberg * cairo_snippets_html.c: Update html snippets. * snippets/pattern_fill.cairo: Remove this, was accidentally committed. @ text @d1 4 @ 1.40 log @2005-05-16 Kristian Høgsberg * cairo_snippets_pdf.c (main): Use new PDF constructor (filename instaed of FILE). @ text @d1 7 @ 1.39 log @reordered cr and surface destruction calls. @ text @d1 5 @ 1.38 log @2005-05-13 Kristian Høgsberg * cairo_snippets_pdf.c (main): Use new PDF constructor. @ text @d1 4 @ 1.37 log @SC @ text @d1 4 @ 1.36 log @2005-05-11 Owen Taylor * cairo_snippets_win32.c (on_paint): Remove a stray cairo_new_path() that is no longer needed. @ text @d1 4 @ 1.35 log @2005-05-11 Owen Taylor * cairo_snippets_pdf.c (main): API update. @ text @d3 5 @ 1.34 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 @d3 4 @ 1.33 log @2005-05-02 Kristian Høgsberg * png_io.c: * png_io.h: * cairo_snippets_png.c: * Makefile.am: Drop custom PNG IO functions and use cairo's new PNG functions. * prepare_snippets.c: * snippets/clip_image.cairo: * snippets/curve_rectangle.cairo: * snippets/fill_and_stroke.cairo: * snippets/fill_and_stroke2.cairo: * snippets/image.cairo: * snippets/imagepattern.cairo: * snippets/libsvg.cairo: * snippets/text.cairo: Port to cairos new group semantics by using cairo_fill_preserve() instead of cairo_save()/cairo_restore() to keep the current path after filling it. Use cairo_image_surface_create_from_png() to load png files. Fix pointer signedness in a couple of places. @ text @d1 10 @ 1.32 log @ * cairo_snippets_pdf.c: * cairo_snippets_ps.c: * prepare_snippets.c: (make_util): * snippets/arc.cairo: * snippets/arc_negative.cairo: * snippets/curve_rectangle.cairo: * snippets/curve_to.cairo: * snippets/operator_add.cairo: * snippets/operator_atop.cairo: * snippets/operator_atop_reverse.cairo: * snippets/operator_in.cairo: * snippets/operator_in_reverse.cairo: * snippets/operator_out.cairo: * snippets/operator_out_reverse.cairo: * snippets/operator_over.cairo: * snippets/operator_over_reverse.cairo: * snippets/operator_saturate.cairo: * snippets/operator_xor.cairo: * snippets/text.cairo: * snippets/text_align_center.cairo: * snippets/text_extents.cairo: Update for changes in the cairo API, including: Use 72.0 scale factor instead of 96.0 Use unsigned char as appropriate Use cairo_set_source_rgba instead of cairo_set_rgb_color and cairo_set_alpha. @ text @d1 22 @ 1.31 log @ * cairo_snippets_png.c: (snippet_do_png): Track removal of cairo_set_target_png. @ text @d1 30 @ 1.30 log @2005-03-04 Owen Taylor * cairo_snippets_png.c (snippet_do_png): Open output file with "wb". @ text @d1 5 @ 1.29 log @2005-02-24 Owen Taylor * configure.ac Makefile.am: Build the PDF and Win32 backends conditionally. * autogen.sh: Replace with something more comprehensive based on the Cairo version. * configure.ac: Add AC_CONFIG_HEADERS * cairo_snippets_ps.c: Include @ text @d1 5 @ 1.28 log @pass correct cflags when compiling the gtkcairo version @ text @d1 12 @ 1.27 log @added autogen.sh @ text @d3 4 @ 1.26 log @005-02-02 Owen Taylor * cairo_snippets_win32.c (WndProc): Add a missing return. * configure.ac: remove unneeded AC_ISC_POSIX. @ text @d1 4 @ 1.25 log @2005-02-01 Kristian Høgsberg * snippets/curve_rectangle.cairo: Fix clash between global width and height parameters and rectangle width and height. @ text @d1 6 @ 1.24 log @2005-02-01 Kristian Høgsberg * autotool this thing, move *.cairo into snippets/ and webpage related files into html/. @ text @d3 3 @ 1.23 log @2005-01-31 Owen Taylor * cairo_snippets_win32.c: Add a Windows version of the snippets wrapper. * Makefile (CFLAGS): Add a rule for cairo_snippets_win32; won't work without some extra editing. @ text @d1 5 @ 1.22 log @ * Makefile (CFLAGS): Actually use the settings of CFLAGS when compiling. @ text @d1 8 @ 1.21 log @added normalization function, and removed then redundant initialization code from snippets @ text @d1 5 @ 1.20 log @2005-01-05 Kristian Høgsberg * Makefile (COMPILE_PROGS): Reenable PDF snippets. * cairo_snippets_pdf.c (main): Add feature to only output specific snippets. @ text @d1 12 @ 1.19 log @ * cairo_snippets_html.c (do_index): index() is a C library function, rename to do_index(). * Makefile: Add -g -Wall -O2, to get good warnings. * cairo_snippets_html.c prepare_snippets.c: Fix warnings. * cairo_snippets_png.c: Allow individual snippet names to be specified on the command line. @ text @d1 5 @ 1.18 log @ * xxx_clip_rectangle.cairo: Added test to deomnstrate current bug in rectangle-based clipping. @ text @d1 12 @ 1.17 log @escape back slashes correctly @ text @d1 5 @ 1.16 log @ * operator_add.cairo, operator_atop.cairo, operator_atop_reverse.cairo, operator_in.cairo, operator_in_reverse.cairo, operator_out.cairo, operator_out_reverse.cairo, operator_over.cairo, operator_over_reverse.cairo, operator_saturate.cairo, operator_xor.cairo: Set alpha to 0.5 for more interesting results. @ text @d1 3 @ 1.15 log @changed the text snippets, better naming, and added right align example @ text @d1 9 @ 1.14 log @finalized the changes to the snippets part of the website @ text @d1 7 @ 1.13 log @various helping lines single html file for each snippet, preliminary browsing support @ text @d3 1 a3 1 * cairo_snippets_html.c : added seperate pages for each snippet d6 1 @ 1.12 log @added operator tests, and snipepts.ps, snippets.pdf to .cvsignore @ text @d1 8 d22 1 d27 1 d36 1 d43 1 d47 1 d51 1 d55 1 d61 1 d68 2 @ 1.11 log @ * header.html: Give attribution to ?yvind Kol?s for original creation of snippets. @ text @d1 5 @ 1.10 log @ * .cvsignore: Add .cvsignore to ignore auto-generated files. @ text @d3 3 @ 1.9 log @added curved_rectangle snippet, which also tests alpha stroking @ text @d1 4 @ 1.8 log @seperated the html generation from cairo_snippets_png @ text @d2 4 @ 1.7 log @Awaiting commit of the changes which lead to this ;) @ text @d2 8 @ 1.6 log @added postscript writer @ text @d2 6 @ 1.5 log @removed unneed STRIDE define @ text @d2 3 @ 1.4 log @code cleanup @ text @d2 3 @ 1.3 log @tidied up the png writing backend @ text @d1 3 @ 1.2 log @added pdf backend @ text @d2 7 a8 2 * cairo_snippets_pdf.c, Makefile: added pdf backend, initially commented out in Makefile @ 1.1 log @initial import of cairo_snippets @ text @d1 4 @