code: def get_extents(self):
          
          extents = ffi.new('cairo_rectangle_t *')
          if cairo.cairo_recording_surface_get_extents(self._pointer, extents):
              return (extents.x, extents.y, extents.width, extents.height)
docs: Return the extents of the recording-surface.
  
          :returns:
              A ``(x, y, width, height)`` tuple of floats,
              or :obj:`None` if the surface is unbounded.
  
          *New in cairo 1.12*