svgSurfaceGetDocumentUnit

Get the unit of the SVG surface.

If the surface passed as an argument is not a SVG surface, the function sets the error status to CAIRO_STATUS_SURFACE_TYPE_MISMATCH and returns CAIRO_SVG_UNIT_USER.

Parameters

surface cairo.surface.Surface

a SVG #cairo_surface_t

Return Value

Type: cairo.types.SvgUnit

the SVG unit of the SVG surface.