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
$window
The window to set limits for.int
$minwidth
The minimum width, in screen coordinates, of the content area, orGLFW_DONT_CARE
.int
$minheight
The minimum height, in screen coordinates, of the content area, orGLFW_DONT_CARE
.int
$maxwidth
The maximum width, in screen coordinates, of the content area, orGLFW_DONT_CARE
.int
$maxheight
The maximum height, in screen coordinates, of the content area, orGLFW_DONT_CARE
.
- returns
-
void