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