Method Cairo.Surface()->get_device() Method get_device Device get_device() Description This function returns the device for a surface. See Device. Returns The device for this surface or UNDEFINED if the surface does not have an associated device.