Functions

  cleanup ()
  error_quark ()
  set_default_dpi (dpi)
  set_default_dpi_x_y (dpi_x, dpi_y)

Details

Rsvg.cleanup()

New in version 2.36.

Deprecated since version 2.46: No-op. This function should not be called from normal programs.

Rsvg.error_quark()
Returns:The error domain
Return type:int

The error domain for RSVG

Rsvg.set_default_dpi(dpi)
Parameters:dpi (float) – Dots Per Inch (aka Pixels Per Inch)

Do not use this function. Create an Rsvg.Handle and call Rsvg.Handle.set_dpi() on it instead.

New in version 2.8.

Deprecated since version 2.42.3: This function used to set a global default DPI. However, it only worked if it was called before any Rsvg.Handle objects had been created; it would not work after that. To avoid global mutable state, please use Rsvg.Handle.set_dpi() instead.

Rsvg.set_default_dpi_x_y(dpi_x, dpi_y)
Parameters:
  • dpi_x (float) – Dots Per Inch (aka Pixels Per Inch)
  • dpi_y (float) – Dots Per Inch (aka Pixels Per Inch)

Do not use this function. Create an Rsvg.Handle and call Rsvg.Handle.set_dpi_x_y() on it instead.

New in version 2.8.

Deprecated since version 2.42.3: This function used to set a global default DPI. However, it only worked if it was called before any Rsvg.Handle objects had been created; it would not work after that. To avoid global mutable state, please use Rsvg.Handle.set_dpi() instead.