Namespace

Rsvg – 2.0

Librsvg - load and render SVG documents

Version2.53.0
AuthorsLibrsvg developers
LicenseLGPL-2.1-or-later
Websitehttps://wiki.gnome.org/Projects/LibRsvg
Sourcehttps://gitlab.gnome.org/GNOME/librsvg/

Build

C headerslibrsvg/rsvg.h
pkg-config fileslibrsvg-2.0

Classes

Handle

RsvgHandle loads an SVG document into memory.

Structs

DimensionData

Dimensions of an SVG image from rsvg_handle_get_dimensions(), or an individual element from rsvg_handle_get_dimensions_sub(). Please see the deprecation documentation for those functions.

Length

RsvgLength values are used in rsvg_handle_get_intrinsic_dimensions(), for example, to return the CSS length values of the width and height attributes of an <svg> element.

PositionData

Position of an SVG fragment from rsvg_handle_get_position_sub(). Please the deprecation documentation for that function.

Rectangle

A data structure for holding a rectangle.

Enumerations

Unit

Units for the RsvgLength struct. These have the same meaning as CSS length units.

Bitfields

HandleFlags

Configuration flags for an RsvgHandle. Note that not all of RsvgHandles constructors let you specify flags. For this reason, rsvg_handle_new_from_gfile_sync() and rsvg_handle_new_from_stream_sync() are the preferred ways to create a handle.

Error Domains

Error

An enumeration representing possible errors.

Functions

cleanup

This function does nothing.

set_default_dpi

Do not use this function. Create an RsvgHandle and call rsvg_handle_set_dpi() on it instead.

set_default_dpi_x_y

Do not use this function. Create an RsvgHandle and call rsvg_handle_set_dpi_x_y() on it instead.

Function Macros

CHECK_VERSION

This C macro returns TRUE if the the version of librsvg being compiled against is the same or newer than the specified version.

DEPRECATED_FOR

Constants

MAJOR_VERSION

This is a C macro that expands to a number with the major version of librsvg against which your program is compiled.

MICRO_VERSION

This is a C macro that expands to a number with the micro version of librsvg against which your program is compiled.

MINOR_VERSION

This is a C macro that expands to a number with the minor version of librsvg against which your program is compiled.

VERSION

This is a C macro that expands to a string with the version of librsvg against which your program is compiled.