Window.mouseRect

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

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

Parameters

newMouseRect Rect

dsdl2.Rect specifying the rectangle in window coordinate space to confine the mouse pointer in

Throws

dsdl2.SDLException if failed to set the confinement

Meta