Window.mouseRect

Wraps SDL_SetWindowMouseRect (from SDL 2.0.18) which sets or resets the window's mouse confinement rectangle

  1. Nullable!Rect mouseRect()
  2. void mouseRect(Rect newMouseRect)
  3. void mouseRect(typeof(null) _)
  4. void mouseRect(Nullable!Rect newMouseRect)
    class Window
    @property @trusted
    static if(sdlSupport >= SDLSupport.v2_0_18)
    void
    mouseRect
    ()

Parameters

newMouseRect Nullable!Rect

dsdl2.Rect specifying the rectangle in window coordinate space to confine the mouse pointer in; null to reset the confinement

Throws

dsdl2.SDLException if failed to set or reset the confinement

Meta