glfwSetWindowMaximizeCallback¶
This function sets the maximize callback of the specified window, which is called when the window is maximized or restored.
Example:
glfwSetWindowMaximizeCallback($window, function($maximized) {
echo "Window maximized changed to: " . $maximized . PHP_EOL;
});
- arguments
-
\GLFWwindow
$window
The window whose callback to set.callable
$callback
- returns
-
void