Surface.getDevice

This function returns the device for a surface. See #cairo_device_t.

Returns

The device for surface or null if the surface does

not have an associated device.