setMaximumSize method

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

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

\param window the window to change. \param max_w the maximum width of the window, or 0 for no limit. \param max_h the maximum 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_GetWindowMaximumSize \sa SDL_SetWindowMinimumSize

extern SDL_DECLSPEC bool SDLCALL SDL_SetWindowMaximumSize(SDL_Window *window, int max_w, int max_h)

Implementation

bool setMaximumSize(int w, int h) {
  return sdlSetWindowMaximumSize(this, w, h);
}