Window.mouseRect - multiple declarations

Function Window.mouseRect

Wraps SDL_GetWindowMouseRect (from SDL 2.0.18) which gets the window's mouse confinement rectangle

std.typecons.Nullable!(dsdl2.rect.Rect) mouseRect() @property @trusted const;

Returns

dsdl2.Rect of the mouse's confinement rectangle in the window

Function Window.mouseRect

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

void mouseRect (
  Rect newMouseRect
) @property @trusted;

Parameters

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

Throws

dsdl2.SDLException if failed to set the confinement

Function Window.mouseRect

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

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

Throws

dsdl2.SDLException if failed to reset the confinement

Function Window.mouseRect

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

void mouseRect (
  std.typecons.Nullable!(dsdl2.rect.Rect) newMouseRect
) @property @trusted;

Parameters

NameDescription
newMouseRect 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