glfw_sys

Type Alias GLFWwindowsizefun

source
pub type GLFWwindowsizefun = Option<unsafe extern "C" fn(window: *mut GLFWwindow, width: c_int, height: c_int)>;
Expand description

@brief The function pointer type for window size callbacks.

This is the function pointer type for window size callbacks. A window size callback function has the following signature: @code void callback_name(GLFWwindow* window, int width, int height) @endcode

@param[in] window The window that was resized. @param[in] width The new width, in screen coordinates, of the window. @param[in] height The new height, in screen coordinates, of the window.

@sa @ref window_size @sa @ref glfwSetWindowSizeCallback

@since Added in version 1.0. @glfw3 Added window handle parameter.

@ingroup window

Aliased Type§

enum GLFWwindowsizefun {
    None,
    Some(unsafe extern "C" fn(_: *mut GLFWwindow, _: i32, _: i32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut GLFWwindow, _: i32, _: i32))

Some value of type T.