cairo_svg_surface_get_document_unit.Rd
Get the unit of the SVG surface.
cairo_svg_surface_get_document_unit(surface)
surface | [ |
---|
[int
]
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)
Other cairo-svg-surface:
cairo_svg_surface_create()
,
cairo_svg_surface_restrict_to_version()
,
cairo_svg_surface_set_document_unit()
,
cairo_svg_version_to_string()