Commit 2eaea683 authored by Dom Lachowicz's avatar Dom Lachowicz

Rename rsvg_cairo_render to rsvg_handle_render_cairo, for better GObject

	* *.c: Rename rsvg_cairo_render to rsvg_handle_render_cairo, for
	better GObject consistency
	* configure.in: 2.13.91
parent dc988d3b
2006-02-04 Dom Lachowicz <cinamod@hotmail.com>
* *.c: Rename rsvg_cairo_render to rsvg_handle_render_cairo, for
better GObject consistency
* configure.in: 2.13.91
2006-02-04 Dom Lachowicz <cinamod@hotmail.com>
* doc/*: Update documentation. I'm pretty happy with how things look
......
......@@ -21,7 +21,7 @@ dnl ===========================================================================
LIBRSVG_MAJOR_VERSION=2
LIBRSVG_MINOR_VERSION=13
LIBRSVG_MICRO_VERSION=90
LIBRSVG_MICRO_VERSION=91
AC_SUBST(LIBRSVG_MAJOR_VERSION)
AC_SUBST(LIBRSVG_MINOR_VERSION)
AC_SUBST(LIBRSVG_MICRO_VERSION)
......
......@@ -29,8 +29,8 @@ rsvg_handle_get_dimensions
<SECTION>
<FILE>rsvg-cairo</FILE>
<TITLE>Cairo</TITLE>
rsvg_cairo_render
rsvg_cairo_render_sub
rsvg_handle_render_cairo
rsvg_handle_render_cairo_sub
</SECTION>
<SECTION>
......
......@@ -22,6 +22,23 @@
Creating a SVGZ reader
<!-- ##### FUNCTION rsvg_cairo_render ##### -->
<para>
</para>
@cr:
@handle:
<!-- ##### FUNCTION rsvg_cairo_render_sub ##### -->
<para>
</para>
@cr:
@handle:
@id:
<!-- ##### FUNCTION rsvg_handle_new_gz ##### -->
<para>
......
......@@ -26,8 +26,8 @@ EXPORTS
rsvg_pixbuf_from_file_at_size
rsvg_pixbuf_from_file_at_max_size
rsvg_pixbuf_from_file_at_zoom_with_max
rsvg_cairo_render
rsvg_cairo_render_sub
rsvg_handle_render_cairo
rsvg_handle_render_cairo_sub
rsvg_handle_get_type
_rsvg_size_callback
_rsvg_acquire_xlink_href_resource
......
......@@ -1199,7 +1199,7 @@ rsvg_handle_set_dpi_x_y (RsvgHandle * handle, double dpi_x, double dpi_y)
* of the generated pixbuf. If the image has no associated size, then the size
* arguments are set to -1.
*
* Deprecated: Set up a cairo matrix and use rsvg_cairo_render() instead.
* Deprecated: Set up a cairo matrix and use rsvg_handle_render_cairo() instead.
**/
void
rsvg_handle_set_size_callback (RsvgHandle *handle,
......
......@@ -120,9 +120,9 @@ rsvg_cairo_new_drawing_ctx (cairo_t *cr, RsvgHandle *handle)
}
/**
* rsvg_cairo_render_sub
* @cr: A Cairo renderer
* rsvg_handle_render_cairo_sub
* @handle: A RsvgHandle
* @cr: A Cairo renderer
* @id: An element's id within the SVG, or %NULL to render the whole SVG
*
* Draws a subset of a SVG to a Cairo surface
......@@ -130,7 +130,7 @@ rsvg_cairo_new_drawing_ctx (cairo_t *cr, RsvgHandle *handle)
* Since: 2.14
*/
void
rsvg_cairo_render_sub (cairo_t *cr, RsvgHandle *handle, const char * id)
rsvg_handle_render_cairo_sub (RsvgHandle *handle, cairo_t *cr, const char * id)
{
RsvgDrawingCtx * draw;
RsvgNode * drawsub = NULL;
......@@ -159,16 +159,16 @@ rsvg_cairo_render_sub (cairo_t *cr, RsvgHandle *handle, const char * id)
}
/**
* rsvg_cairo_render
* @cr: A Cairo renderer
* rsvg_handle_render_cairo
* @handle: A RsvgHandle
* @cr: A Cairo renderer
*
* Draws a SVG to a Cairo surface
*
* Since: 2.14
*/
void
rsvg_cairo_render (cairo_t *cr, RsvgHandle *handle)
rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr)
{
rsvg_cairo_render_sub(cr, handle, NULL);
rsvg_handle_render_cairo_sub(handle, cr, NULL);
}
......@@ -28,10 +28,10 @@
#include <cairo.h>
void
rsvg_cairo_render (cairo_t *cr, RsvgHandle *handle);
rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr);
void
rsvg_cairo_render_sub(cairo_t *cr, RsvgHandle *handle, const char * id);
rsvg_handle_render_cairo_sub(RsvgHandle *handle, cairo_t *cr, const char * id);
#endif
......@@ -276,7 +276,7 @@ main (int argc, const char **argv)
cr = cairo_create (surface);
}
rsvg_cairo_render (cr, rsvg);
rsvg_handle_render_cairo (rsvg, cr);
if (!format || !strcmp (format, "png"))
cairo_surface_write_to_png_stream (surface, rsvg_cairo_write_func, output_file);
......
......@@ -217,7 +217,7 @@ rsvg_pixbuf_from_file_with_size_data (const gchar * file_name,
* set and %NULL is returned.
*
* Return value: A newly allocated #GdkPixbuf, or %NULL
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_cairo_render() instead.
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_handle_render_cairo() instead.
**/
GdkPixbuf *
rsvg_pixbuf_from_file (const gchar *file_name,
......@@ -239,7 +239,7 @@ rsvg_pixbuf_from_file (const gchar *file_name,
* occurred, @error is set and %NULL is returned.
*
* Return value: A newly allocated #GdkPixbuf, or %NULL
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_cairo_render() instead.
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_handle_render_cairo() instead.
**/
GdkPixbuf *
rsvg_pixbuf_from_file_at_zoom (const gchar *file_name,
......@@ -276,7 +276,7 @@ rsvg_pixbuf_from_file_at_zoom (const gchar *file_name,
* returned pixbuf. If an error occurred, @error is set and %NULL is returned.
*
* Return value: A newly allocated #GdkPixbuf, or %NULL
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_cairo_render() instead.
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_handle_render_cairo() instead.
**/
GdkPixbuf *
rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *file_name,
......@@ -315,7 +315,7 @@ rsvg_pixbuf_from_file_at_zoom_with_max (const gchar *file_name,
* error occurred, @error is set and %NULL is returned.
*
* Return value: A newly allocated #GdkPixbuf, or %NULL
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_cairo_render() instead.
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_handle_render_cairo() instead.
**/
GdkPixbuf *
rsvg_pixbuf_from_file_at_size (const gchar *file_name,
......@@ -346,7 +346,7 @@ rsvg_pixbuf_from_file_at_size (const gchar *file_name,
* @error is set and %NULL is returned.
*
* Return value: A newly allocated #GdkPixbuf, or %NULL
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_cairo_render() instead.
* Deprecated: Set up a cairo matrix and use rsvg_handle_new_from_file() + rsvg_handle_render_cairo() instead.
**/
GdkPixbuf *
rsvg_pixbuf_from_file_at_max_size (const gchar *file_name,
......
......@@ -91,7 +91,7 @@ rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char * id)
cr = cairo_create (surface);
rsvg_cairo_render_sub (cr, handle, id);
rsvg_handle_render_cairo_sub (handle, cr, id);
rsvg_cairo_to_pixbuf(pixels, rowstride, dimensions.height);
output = gdk_pixbuf_new_from_data (pixels,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment