a viewport size in which to render the SVG document.
rsvg.types
D types for rsvg2 library
Types 8
Function to let a user of the library specify the SVG's dimensions
See the documentation for [rsvg.handle.Handle.setSizeCallback] for an example, and for the reasons for deprecation.
Parameters
width | the width of the SVG |
height | the height of the SVG |
Deprecated
Variables 4
MAJOR_VERSION = 2This is a C macro that expands to a number with the major version of librsvg against which your program is compiled.
For example, for librsvg-2.3.4, the major version is 2.
C programs can use this as a compile-time check for the required version, but note that generally it is a better idea to do compile-time checks by calling pkg-config in your build scripts.
Note
program is running with (e.g. the version which the linker used for your program), or for programs not written in C, use rsvg_major_version instead.
MICRO_VERSION = 1This is a C macro that expands to a number with the micro version of librsvg against which your program is compiled.
For example, for librsvg-2.3.4, the micro version is 4.
C programs can use this as a compile-time check for the required version, but note that generally it is a better idea to do compile-time checks by calling pkg-config in your build scripts.
Note
program is running with (e.g. the version which the linker used for your program), or for programs not written in C, use rsvg_micro_version instead.
MINOR_VERSION = 57This is a C macro that expands to a number with the minor version of librsvg against which your program is compiled.
For example, for librsvg-2.3.4, the minor version is 3.
C programs can use this as a compile-time check for the required version, but note that generally it is a better idea to do compile-time checks by calling pkg-config in your build scripts.
Note
program is running with (e.g. the version which the linker used for your program), or for programs not written in C, use rsvg_minor_version instead.
VERSION = "2.57.1"This is a C macro that expands to a string with the version of librsvg against which your program is compiled.
For example, for librsvg-2.3.4, this macro expands to "2.3.4".
C programs can use this as a compile-time check for the required version, but note that generally it is a better idea to do compile-time checks by calling pkg-config in your build scripts.
Note
program is running with (e.g. the version which the linker used for your program), or for programs not written in C, use rsvg_version instead.