Window.mouseRect

Acts as SDL_SetWindowMouseRect(window, NULL) (from SDL 2.0.18) which resets the window's mouse confinement rectangle

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

Throws

dsdl2.SDLException if failed to reset the confinement

Meta