set_clip is deprecrated, so we should use set_clip_rect instead