Surface.clipRect

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

  1. Rect clipRect()
  2. void clipRect(Rect newRect)
  3. void clipRect(typeof(null) _)
  4. void clipRect(Nullable!Rect newRect)
    class Surface
    @property @trusted
    void
    clipRect
    (
    Nullable!Rect newRect
    )

Parameters

newRect Nullable!Rect

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

Meta