glfwSetWindowSizeLimits¶
Sets the size limits of the specified window.
function glfwSetWindowSizeLimits(\GLFWwindow $window, int $minwidth, int $minheight, int $maxwidth, int $maxheight) : void
This function sets the size limits of the content area of the specified window. If the window is full screen, the size limits only take effect once it is made windowed. If the window is not resizable, this function does nothing.
The size limits are applied immediately to a windowed mode window and may cause it to be resized.
The maximum dimensions must be greater than or equal to the minimum dimensions and all must be greater than or equal to zero.
- arguments
-
\GLFWwindow$windowThe window to set limits for.int$minwidthThe minimum width, in screen coordinates, of the content area, orGLFW_DONT_CARE.int$minheightThe minimum height, in screen coordinates, of the content area, orGLFW_DONT_CARE.int$maxwidthThe maximum width, in screen coordinates, of the content area, orGLFW_DONT_CARE.int$maxheightThe maximum height, in screen coordinates, of the content area, orGLFW_DONT_CARE.
- returns
-
void