GLFWwindowcontentscalefun

Type Alias GLFWwindowcontentscalefun 

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

@brief The function pointer type for window content scale callbacks.

This is the function pointer type for window content scale callbacks. A window content scale callback function has the following signature: @code void function_name(GLFWwindow* window, float xscale, float yscale) @endcode

@param[in] window The window whose content scale changed. @param[in] xscale The new x-axis content scale of the window. @param[in] yscale The new y-axis content scale of the window.

@sa @ref window_scale @sa @ref glfwSetWindowContentScaleCallback

@since Added in version 3.3.

@ingroup window

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.