clip_rect function

Define a clipping rectangle for use as a clip argument