Name
csurface:GetDocumentUnit -- get document unit
Synopsis
unit = csurface:GetDocumentUnit()
Function
Get the unit of the SVG surface.

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

Inputs
none

Results
unit
the SVG unit of the SVG surface

Show TOC