GLFWmousebuttonfun

Type Alias GLFWmousebuttonfun 

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

@brief The function pointer type for mouse button callbacks.

This is the function pointer type for mouse button callback functions. A mouse button callback function has the following signature: @code void function_name(GLFWwindow* window, int button, int action, int mods) @endcode

@param[in] window The window that received the event. @param[in] button The [mouse button](@ref buttons) that was pressed or released. @param[in] action One of GLFW_PRESS or GLFW_RELEASE. Future releases may add more actions. @param[in] mods Bit field describing which [modifier keys](@ref mods) were held down.

@sa @ref input_mouse_button @sa @ref glfwSetMouseButtonCallback

@since Added in version 1.0. @glfw3 Added window handle and modifier mask parameters.

@ingroup input

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.