glfwGetMonitorUserPointer

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.

extern (C) @nogc nothrow __gshared
void*
glfwGetMonitorUserPointer

Parameters

monitor GLFWmonitor*

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

Meta

Since

Added in version 3.3.

Ingroup: monitor