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
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
Parameters
Name | Description |
---|---|
newMouseRect | dsdl2 specifying the rectangle in window coordinate space to confine the mouse
pointer in |
Throws
dsdl2
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
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
Name | Description |
---|---|
newMouseRect | dsdl2 specifying the rectangle in window coordinate space to confine the mouse
pointer in; null to reset the confinement |
Throws
dsdl2
if failed to set or reset the confinement