GLFWscrollfun

Type Alias GLFWscrollfun 

Source
pub type GLFWscrollfun = Option<unsafe extern "C" fn(*mut GLFWwindow, f64, f64)>;
Expand description

@brief The function pointer type for scroll callbacks.

This is the function pointer type for scroll callbacks. A scroll callback function has the following signature: @code void function_name(GLFWwindow* window, double xoffset, double yoffset) @endcode

@param[in] window The window that received the event. @param[in] xoffset The scroll offset along the x-axis. @param[in] yoffset The scroll offset along the y-axis.

@sa @ref scrolling @sa @ref glfwSetScrollCallback

@since Added in version 3.0. Replaces GLFWmousewheelfun.

@ingroup input

Aliased Type§

pub enum GLFWscrollfun {
    None,
    Some(unsafe extern "C" fn(*mut GLFWwindow, f64, f64)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut GLFWwindow, f64, f64))

Some value of type T.