Method
RsvgHandleset_size_callback
Declaration [src]
void
rsvg_handle_set_size_callback (
RsvgHandle* handle,
RsvgSizeFunc size_func,
gpointer user_data,
GDestroyNotify user_data_destroy
)
Description [src]
Sets the sizing function for the handle
, which can be used to override the
size that librsvg computes for SVG images. The size_func
is called from the
following functions:
rsvg_handle_get_dimensions()
rsvg_handle_get_dimensions_sub()
rsvg_handle_get_position_sub()
rsvg_handle_render_cairo()
rsvg_handle_render_cairo_sub()
Librsvg computes the size of the SVG being rendered, and passes it to the
size_func
, which may then modify these values to set the final size of the
generated image.
Deprecated since: | 2.14. |
Use |
Parameters
size_func |
RsvgSizeFunc |
A sizing function, or |
|
The argument can be NULL . | |
user_data |
gpointer |
User data to pass to |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
user_data_destroy |
GDestroyNotify |
Function to be called to destroy the data passed in |