setMinimumSize method

bool setMinimumSize(
  1. int w,
  2. int h
)

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

\param window the window to change. \param min_w the minimum width of the window, or 0 for no limit. \param min_h the minimum height of the window, or 0 for no limit. \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_GetWindowMinimumSize \sa SDL_SetWindowMaximumSize

extern SDL_DECLSPEC bool SDLCALL SDL_SetWindowMinimumSize(SDL_Window *window, int min_w, int min_h)

Implementation

bool setMinimumSize(int w, int h) {
  return sdlSetWindowMinimumSize(this, w, h);
}