|
LIBRSVG 2.62.3
C library for rendering SVG
|
#include <glib-object.h>#include <gio/gio.h>#include "rsvg-version.h"#include "rsvg-features.h"#include "rsvg-cairo.h"#include "rsvg-pixbuf.h"Go to the source code of this file.
Data Structures | |
| struct | RsvgHandleClass |
| RsvgHandleClass: More... | |
| struct | RsvgHandle |
| RsvgHandle: More... | |
| struct | RsvgDimensionData |
| RsvgDimensionData: More... | |
| struct | RsvgPositionData |
| RsvgPositionData: More... | |
| struct | RsvgRectangle |
| RsvgRectangle: More... | |
| struct | RsvgLength |
| RsvgLength: More... | |
Macros | |
| #define | __RSVG_RSVG_H_INSIDE__ |
| #define | RSVG_ERROR (rsvg_error_quark ()) |
| #define | RSVG_TYPE_ERROR (rsvg_error_get_type()) |
| #define | RSVG_TYPE_HANDLE (rsvg_handle_get_type ()) |
| #define | RSVG_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), RSVG_TYPE_HANDLE, RsvgHandle)) |
| #define | RSVG_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), RSVG_TYPE_HANDLE, RsvgHandleClass)) |
| #define | RSVG_IS_HANDLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), RSVG_TYPE_HANDLE)) |
| #define | RSVG_IS_HANDLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), RSVG_TYPE_HANDLE)) |
| #define | RSVG_HANDLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), RSVG_TYPE_HANDLE, RsvgHandleClass)) |
| #define | RSVG_TYPE_HANDLE_FLAGS (rsvg_handle_flags_get_type()) |
Typedefs | |
| typedef void(* | RsvgSizeFunc) (gint *width, gint *height, gpointer user_data) |
| RsvgSizeFunc: | |
Enumerations | |
| enum | RsvgError { RSVG_ERROR_FAILED } |
| RsvgError: @RSVG_ERROR_FAILED: the request failed. More... | |
| enum | RsvgUnit { RSVG_UNIT_PERCENT , RSVG_UNIT_PX , RSVG_UNIT_EM , RSVG_UNIT_EX , RSVG_UNIT_IN , RSVG_UNIT_CM , RSVG_UNIT_MM , RSVG_UNIT_PT , RSVG_UNIT_PC , RSVG_UNIT_CH } |
| RsvgUnit: More... | |
| enum | RsvgHandleFlags { RSVG_HANDLE_FLAGS_NONE = 0 , RSVG_HANDLE_FLAG_UNLIMITED = 1 << 0 , RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA = 1 << 1 } |
| RsvgHandleFlags: @RSVG_HANDLE_FLAGS_NONE: no flags @RSVG_HANDLE_FLAG_UNLIMITED: no limits on XML size (trusted input only) @RSVG_HANDLE_FLAG_KEEP_IMAGE_DATA: keep compressed image bytes. More... | |
Functions | |
| GQuark | rsvg_error_quark (void) |
| rsvg_error_quark: | |
| GType | rsvg_error_get_type (void) |
| GType | rsvg_handle_get_type (void) |
| void | rsvg_cleanup (void) |
| rsvg_cleanup: | |
| void | rsvg_set_default_dpi (double dpi) |
| rsvg_set_default_dpi: | |
| void | rsvg_set_default_dpi_x_y (double dpi_x, double dpi_y) |
| rsvg_set_default_dpi_x_y: | |
| void | rsvg_handle_set_dpi (RsvgHandle *handle, double dpi) |
| rsvg_handle_set_dpi: @handle: an #RsvgHandle @dpi: dots per inch (both axes) | |
| void | rsvg_handle_set_dpi_x_y (RsvgHandle *handle, double dpi_x, double dpi_y) |
| rsvg_handle_set_dpi_x_y: @handle: an #RsvgHandle | |
| RsvgHandle * | rsvg_handle_new (void) |
| rsvg_handle_new: | |
| gboolean | rsvg_handle_write (RsvgHandle *handle, const guchar *buf, gsize count, GError **error) |
| rsvg_handle_write: | |
| gboolean | rsvg_handle_close (RsvgHandle *handle, GError **error) |
| rsvg_handle_close: | |
| const char * | rsvg_handle_get_base_uri (RsvgHandle *handle) |
| rsvg_handle_get_base_uri: | |
| void | rsvg_handle_set_base_uri (RsvgHandle *handle, const char *base_uri) |
| rsvg_handle_set_base_uri: @handle: an #RsvgHandle @base_uri: base URI for resolving relative references | |
| void | rsvg_handle_get_dimensions (RsvgHandle *handle, RsvgDimensionData *dimension_data) |
| rsvg_handle_get_dimensions: | |
| gboolean | rsvg_handle_get_dimensions_sub (RsvgHandle *handle, RsvgDimensionData *dimension_data, const char *id) |
| rsvg_handle_get_dimensions_sub: | |
| gboolean | rsvg_handle_get_position_sub (RsvgHandle *handle, RsvgPositionData *position_data, const char *id) |
| rsvg_handle_get_position_sub: | |
| gboolean | rsvg_handle_has_sub (RsvgHandle *handle, const char *id) |
rsvg_handle_has_sub: @handle: an #RsvgHandle @id: element id starting with # | |
| GType | rsvg_handle_flags_get_type (void) |
| RsvgHandle * | rsvg_handle_new_with_flags (RsvgHandleFlags flags) |
| rsvg_handle_new_with_flags: @flags: RsvgHandleFlags | |
| void | rsvg_handle_set_base_gfile (RsvgHandle *handle, GFile *base_file) |
| rsvg_handle_set_base_gfile: @handle: an #RsvgHandle @base_file: a #GFile used as the base for relative URIs | |
| gboolean | rsvg_handle_read_stream_sync (RsvgHandle *handle, GInputStream *stream, GCancellable *cancellable, GError **error) |
| rsvg_handle_read_stream_sync: @handle: an #RsvgHandle @stream: SVG data @cancellable: (nullable): a #GCancellable @error: return location for a #GError | |
| RsvgHandle * | rsvg_handle_new_from_gfile_sync (GFile *file, RsvgHandleFlags flags, GCancellable *cancellable, GError **error) |
| rsvg_handle_new_from_gfile_sync: @gfile: a #GFile @flags: RsvgHandleFlags @cancellable: (nullable): a #GCancellable @error: return location for a #GError | |
| RsvgHandle * | rsvg_handle_new_from_stream_sync (GInputStream *input_stream, GFile *base_file, RsvgHandleFlags flags, GCancellable *cancellable, GError **error) |
| rsvg_handle_new_from_stream_sync: | |
| RsvgHandle * | rsvg_handle_new_from_data (const guint8 *data, gsize data_len, GError **error) |
| rsvg_handle_new_from_data: @data: SVG bytes @data_len: length of @data @error: return location for a #GError | |
| RsvgHandle * | rsvg_handle_new_from_file (const gchar *filename, GError **error) |
| rsvg_handle_new_from_file: @filename: a file name @error: return location for a #GError | |
| gboolean | rsvg_handle_set_stylesheet (RsvgHandle *handle, const guint8 *css, gsize css_len, GError **error) |
| Set a CSS stylesheet for the SVG document. | |
| void | rsvg_handle_set_cancellable_for_rendering (RsvgHandle *handle, GCancellable *cancellable) |
| Interrupt rendering from another thread. | |
| void | rsvg_handle_get_intrinsic_dimensions (RsvgHandle *handle, gboolean *out_has_width, RsvgLength *out_width, gboolean *out_has_height, RsvgLength *out_height, gboolean *out_has_viewbox, RsvgRectangle *out_viewbox) |
| rsvg_handle_get_intrinsic_dimensions: @handle: an #RsvgHandle @out_has_width: (out)(optional): whether the SVG has a width @out_width: (out)(optional): width as an RsvgLength @out_has_height: (out)(optional): whether the SVG has a height @out_height: (out)(optional): height as an RsvgLength @out_has_viewbox: (out)(optional): whether the SVG has a viewBox @out_viewbox: (out)(optional): viewBox as an #RsvgRectangle | |
| gboolean | rsvg_handle_get_intrinsic_size_in_pixels (RsvgHandle *handle, gdouble *out_width, gdouble *out_height) |
| rsvg_handle_get_intrinsic_size_in_pixels: @handle: an #RsvgHandle @out_width: (out)(optional): width in pixels @out_height: (out)(optional): height in pixels | |
| void | rsvg_init (void) |
| rsvg_init: | |
| void | rsvg_term (void) |
| rsvg_term: | |
| void | rsvg_handle_free (RsvgHandle *handle) |
| rsvg_handle_free: | |
| void | rsvg_handle_set_size_callback (RsvgHandle *handle, RsvgSizeFunc size_func, gpointer user_data, GDestroyNotify user_data_destroy) |
| rsvg_handle_set_size_callback: | |
| const char * | rsvg_handle_get_title (RsvgHandle *handle) |
| rsvg_handle_get_title: | |
| const char * | rsvg_handle_get_desc (RsvgHandle *handle) |
| rsvg_handle_get_desc: | |
| const char * | rsvg_handle_get_metadata (RsvgHandle *handle) |
| rsvg_handle_get_metadata: | |
| #define __RSVG_RSVG_H_INSIDE__ |