Renderer.clipRect - multiple declarations

Function Renderer.clipRect

Wraps SDL_RenderGetClipRect which gets the clipping dsdl2.Rect of the renderer

Rect clipRect() @property @trusted const;

Returns

clipping dsdl2.Rect of the renderer

Function Renderer.clipRect

Wraps SDL_RenderSetClipRect which sets the clipping dsdl2.Rect of the renderer

void clipRect (
  Rect newRect
) @property @trusted;

Parameters

NameDescription
newRect dsdl2.Rect to set as the clipping rectangle

Function Renderer.clipRect

Acts as SDL_RenderSetClipRect(renderer, NULL) which removes the clipping dsdl2.Rect of the renderer

void clipRect (
  typeof(null) _
) @property @trusted;

Function Renderer.clipRect

Wraps SDL_RenderSetClipRect which sets or removes the clipping dsdl2.Rect of the renderer

void clipRect (
  std.typecons.Nullable!(dsdl2.rect.Rect) newRect
) @property @trusted;

Parameters

NameDescription
newRect dsdl2.Rect to set as the clipping rectangle; null to remove the clipping rectangle