chickadee » sdl2 » surface-clip-rect-set!

surface-clip-rect surfaceprocedure
set! (surface-clip-rect surface) rectsetter
surface-clip-rect-set! surface rectsetter

surface-clip-rect returns a copy of the surface's clip rect. See SDL_GetClipRect.

The setters sets the surface's clip rect to a copy of the given rect. rect may be #f, which disables clipping. See SDL_SetClipRect.

The setters return #t if the given rect intersects the surface at all, or #f if the rect is out of bounds (completely clips out the surface).