cairo_svg_surface_get_document_unit: cairo_svg_surface_get_document_unit

Description Usage Arguments Details Value See Also

View source: R/cairo-svg-surface.R

Description

Get the unit of the SVG surface.

Usage

1

Arguments

surface

[cairo_surface_t *] a SVG #cairo_surface_t

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)

Value

[int]

See Also

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()


coolbutuseless/cairocore documentation built on Aug. 31, 2020, 12:43 a.m.