Surface.clipRect - multiple declarations

Function Surface.clipRect

Wraps SDL_GetClipRect which gets the clipping dsdl2.Rect of the dsdl2.Surface

Rect clipRect() @property @trusted const;

Returns

clipping dsdl2.Rect of the dsdl2.Surface

Function Surface.clipRect

Wraps SDL_SetClipRect which sets the clipping dsdl2.Rect of the dsdl2.Surface

void clipRect (
  Rect newRect
) @property @trusted;

Parameters

NameDescription
newRect dsdl2.Rect to set as the clipping rectangle

Function Surface.clipRect

Acts as SDL_SetClipRect(surface, NULL) which removes the clipping dsdl2.Rect of the dsdl2.Surface

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

Function Surface.clipRect

Wraps SDL_SetClipRect which sets or removes the clipping dsdl2.Rect of the dsdl2.Surface

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