sdlGetWindowMinimumSize function

bool sdlGetWindowMinimumSize(
  1. Pointer<SdlWindow> window,
  2. Pointer<Int32> w,
  3. Pointer<Int32> h
)

Get the minimum size of a window's client area.

\param window the window to query. \param w a pointer filled in with the minimum width of the window, may be NULL. \param h a pointer filled in with the minimum height of the window, may be NULL. \returns true on success or false on failure; call SDL_GetError() for more information.

\threadsafety This function should only be called on the main thread.

\since This function is available since SDL 3.1.3.

\sa SDL_GetWindowMaximumSize \sa SDL_SetWindowMinimumSize

extern SDL_DECLSPEC bool SDLCALL SDL_GetWindowMinimumSize(SDL_Window *window, int *w, int *h)

Implementation

bool sdlGetWindowMinimumSize(
    Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h) {
  final sdlGetWindowMinimumSizeLookupFunction = libSdl3.lookupFunction<
      Uint8 Function(
          Pointer<SdlWindow> window, Pointer<Int32> w, Pointer<Int32> h),
      int Function(Pointer<SdlWindow> window, Pointer<Int32> w,
          Pointer<Int32> h)>('SDL_GetWindowMinimumSize');
  return sdlGetWindowMinimumSizeLookupFunction(window, w, h) == 1;
}