LIBRSVG: C library for rendering SVG

LIBRSVG 2.62.3 C library for rendering SVG

Loading...
Searching...
No Matches
Macros | Functions
rsvg-cairo.h File Reference
`#include <cairo.h>`

Go to the source code of this file.

## Macros
#define | RSVG_CAIRO_H

## Functions
gboolean | rsvg_handle_render_cairo (RsvgHandle *handle, cairo_t *cr)
| rsvg_handle_render_cairo: @handle: an #RsvgHandle @cr: a Cairo context
gboolean | rsvg_handle_render_cairo_sub (RsvgHandle *handle, cairo_t *cr, const char *id)
| rsvg_handle_render_cairo_sub: @handle: an #RsvgHandle @cr: a Cairo context @id: (nullable): element id starting with `#`, or NULL for the whole SVG
gboolean | rsvg_handle_render_document (RsvgHandle *handle, cairo_t *cr, const RsvgRectangle *viewport, GError **error)
| Draw the whole SVG into @viewport on @cr.
gboolean | rsvg_handle_render_layer (RsvgHandle *handle, cairo_t *cr, const char *id, const RsvgRectangle *viewport, GError **error)
| rsvg_handle_render_layer: @handle: an #RsvgHandle @cr: a Cairo context @id: (nullable): element id starting with `#`, or NULL for the whole SVG @viewport: viewport for the whole document @error: return location for a #GError
gboolean | rsvg_handle_render_element (RsvgHandle *handle, cairo_t *cr, const char *id, const RsvgRectangle *element_viewport, GError **error)
| rsvg_handle_render_element: @handle: an #RsvgHandle @cr: a Cairo context @id: (nullable): element id starting with `#`, or NULL for the whole SVG @element_viewport: size at which to draw that element @error: return location for a #GError
gboolean | rsvg_handle_get_geometry_for_layer (RsvgHandle *handle, const char *id, const RsvgRectangle *viewport, RsvgRectangle *out_ink_rect, RsvgRectangle *out_logical_rect, GError **error)
| Geometry of an element (or the whole SVG) as if rendered to @viewport.
gboolean | rsvg_handle_get_geometry_for_element (RsvgHandle *handle, const char *id, RsvgRectangle *out_ink_rect, RsvgRectangle *out_logical_rect, GError **error)
| rsvg_handle_get_geometry_for_element: @handle: an #RsvgHandle @id: (nullable): element id starting with `#`, or NULL for the whole SVG @out_ink_rect: (out)(optional): ink rectangle @out_logical_rect: (out)(optional): logical rectangle @error: return location for a #GError

## Macro Definition Documentation

## ◆ RSVG_CAIRO_H

#define RSVG_CAIRO_H