Surface.getDevice

cairo.device.Device getDevice() nothrow

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.