sdlGetWindowMouseRect function

Pointer<SdlRect> sdlGetWindowMouseRect(
  1. Pointer<SdlWindow> window
)

Get the mouse confinement rectangle of a window.

\param window The window to query \returns A pointer to the mouse confinement rectangle of a window, or NULL if there isn't one.

\since This function is available since SDL 2.0.18.

\sa SDL_SetWindowMouseRect

extern DECLSPEC const SDL_Rect * SDLCALL SDL_GetWindowMouseRect(SDL_Window * window)

Implementation

Pointer<SdlRect> sdlGetWindowMouseRect(Pointer<SdlWindow> window) {
  final sdlGetWindowMouseRectLookupFunction = libSdl2.lookupFunction<
      Pointer<SdlRect> Function(Pointer<SdlWindow> window),
      Pointer<SdlRect> Function(
          Pointer<SdlWindow> window)>('SDL_GetWindowMouseRect');
  return sdlGetWindowMouseRectLookupFunction(window);
}