Get the unit of the SVG surface.

cairo_svg_surface_get_document_unit(surface)

Arguments

surface

[cairo_surface_t *] a SVG #cairo_surface_t

Value

[int]

Details

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.

Return value: the SVG unit of the SVG surface.

Since: 1.16

C function prototype: cairo_svg_unit_t cairo_svg_surface_get_document_unit (cairo_surface_t *surface)

See also