pub unsafe extern "C" fn SDL_RenderSetClipRect(
    renderer: *mut SDL_Renderer,
    rect: *const SDL_Rect
) -> c_int
Expand description

Set the clip rectangle for rendering on the specified target.

\param renderer the rendering context for which clip rectangle should be set \param rect an SDL_Rect structure representing the clip area, relative to the viewport, or NULL to disable clipping \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.

\since This function is available since SDL 2.0.0.

\sa SDL_RenderGetClipRect \sa SDL_RenderIsClipEnabled