glfwSetWindowMaximizeCallback function
- Pointer<
GLFWwindow> window, - GLFWwindowmaximizefun callback
! @brief Sets the maximize callback for the specified window.
This function sets the maximization callback of the specified window, which is called when the window is maximized or restored.
@paramin
window The window whose callback to set.
@paramin
callback The new callback, or NULL
to remove the currently set
callback.
@return The previously set callback, or NULL
if no callback was set or the
library had not been initialized
(@ref intro_init).
@callback_signature
@code
void function_name(GLFWwindow* window, int maximized)
@endcode
For more information about the callback parameters, see the
function pointer type
(@ref GLFWwindowmaximizefun).
@errors Possible errors include @ref GLFW_NOT_INITIALIZED.
@thread_safety This function must only be called from the main thread.
@sa @ref window_maximize
@since Added in version 3.3.
@ingroup window
GLFWAPI GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(GLFWwindow* window, GLFWwindowmaximizefun callback)
Implementation
GLFWwindowmaximizefun glfwSetWindowMaximizeCallback(
Pointer<GLFWwindow> window, GLFWwindowmaximizefun callback) {
final glfwSetWindowMaximizeCallbackLookupFunction = libglfw.lookupFunction<
GLFWwindowmaximizefun Function(
Pointer<GLFWwindow> window, GLFWwindowmaximizefun callback),
GLFWwindowmaximizefun Function(Pointer<GLFWwindow> window,
GLFWwindowmaximizefun callback)>('glfwSetWindowMaximizeCallback');
return glfwSetWindowMaximizeCallbackLookupFunction(window, callback);
}