code: def translate_rect(self, rect):
          
          mx, my = self.get_center_offset()
          rx = self._real_ratio_x
          ry = self._real_ratio_y
          x, y, w, h = rect
          if self._zoom_level == 1.0:
              return Rect(x + mx, y + my, w, h)
          else:
              return Rect(round((x + mx) * rx), round((y + my) * ry), round(w * rx), round(h * ry))
docs: Translate rect position and size to screen coordinates.  Respects zoom level.
  
          :rtype: Rect