glfwGetMonitorUserPointer function

Pointer<Void> glfwGetMonitorUserPointer(
  1. Pointer<GLFWmonitor> monitor
)

! @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.

@paramin 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

GLFWAPI void* glfwGetMonitorUserPointer(GLFWmonitor* monitor)

Implementation

Pointer<Void> glfwGetMonitorUserPointer(Pointer<GLFWmonitor> monitor) {
  final glfwGetMonitorUserPointerLookupFunction = libglfw.lookupFunction<
      Pointer<Void> Function(Pointer<GLFWmonitor> monitor),
      Pointer<Void> Function(
          Pointer<GLFWmonitor> monitor)>('glfwGetMonitorUserPointer');
  return glfwGetMonitorUserPointerLookupFunction(monitor);
}