diff options
author | Carl Worth <cworth@cworth.org> | 2005-08-04 17:22:37 +0000 |
---|---|---|
committer | Carl Worth <cworth@src.gnome.org> | 2005-08-04 17:22:37 +0000 |
commit | 4574eea43fd3e80c66fcd308a14c53bf9a38d1fb (patch) | |
tree | 1db9813e262b246a05610bebed2153bfbdb3aa9a /rsvg-cairo.h | |
parent | 0405b69e215672b4f493b86daa568282b807226b (diff) | |
download | librsvg-4574eea43fd3e80c66fcd308a14c53bf9a38d1fb.tar.gz |
Ignore rsvg-cairo and rsvg-view.
2005-08-04 Carl Worth <cworth@cworth.org>
* .cvsignore: Ignore rsvg-cairo and rsvg-view.
* Makefile.am: Add new rsvg-cairo program.
* rsvg-cairo-draw.c: (rsvg_cairo_render_path): Fix MOVETO and
LINETO to pull the right coordinates out of the path structure so
they don't always draw to (0,0).
* rsvg-cairo.h:
* rsvg-cairo-render.c: (rsvg_cairo_render): New header file,
(intended to be public) which adds a single function for rendering
with cairo:
void rsvg_cairo_render (cairo_t *cr, RsvgHandle *handle);
* rsvg-cairo.c: (main): Add new test program rsvg-cairo.
Diffstat (limited to 'rsvg-cairo.h')
-rw-r--r-- | rsvg-cairo.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/rsvg-cairo.h b/rsvg-cairo.h new file mode 100644 index 00000000..8f0c704e --- /dev/null +++ b/rsvg-cairo.h @@ -0,0 +1,35 @@ +/* vim: set sw=4: -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ +/* + rsvg-cairo.h: SAX-based renderer for SVG files using cairo + + Copyright (C) 2005 Red Hat, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this program; if not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + Author: Carl Worth <cworth@cworth.org> +*/ + +#ifndef RSVG_CAIRO_H +#define RSVG_CAIRO_H + +#include <rsvg.h> +#include <cairo.h> + +void +rsvg_cairo_render (cairo_t *cr, RsvgHandle *handle); + +#endif + |