Function

Rsvg.SizeFunc

Declaration

void
SizeFunc (
  gint* width,
  gint* height,
  gpointer user_data
)

Description [src]

Function to let a user of the library specify the SVG’s dimensions

See the documentation for rsvg_handle_set_size_callback() for an example, and for the reasons for deprecation.

Deprecated since:2.14.

Use rsvg_handle_render_document() instead, which lets you specify a viewport size in which to render the SVG document.

Parameters

width gint*
 

the width of the SVG

 Direction: out
 The called function takes ownership of the data, and is responsible for freeing it
height gint*
 

the height of the SVG

 Direction: out
 The called function takes ownership of the data, and is responsible for freeing it
user_data gpointer
 

user data