Surface.getSurfaceType

cairo.types.SurfaceType getSurfaceType()

This function returns the type of the backend used to create a surface. See #cairo_surface_type_t for available types.

Returns

The type of surface.