glfwGetMonitorUserPointer

Function glfwGetMonitorUserPointer 

Source
pub unsafe extern "C" fn glfwGetMonitorUserPointer(
    monitor: *mut GLFWmonitor,
) -> *mut c_void
Expand description

@brief Returns the user pointer of the specified monitor.

This function returns the current value of the user-defined pointer of the specified monitor. The initial value is NULL.

This function may be called from the monitor callback, even for a monitor that is being disconnected.

@param[in] monitor The monitor whose pointer to return.

@errors Possible errors include @ref GLFW_NOT_INITIALIZED.

@thread_safety This function may be called from any thread. Access is not synchronized.

@sa @ref monitor_userptr @sa @ref glfwSetMonitorUserPointer

@since Added in version 3.3.

@ingroup monitor