glfwGetMonitorPos

Returns the position of the monitor's viewport on the virtual screen.

This function returns the position, in screen coordinates, of the upper-left corner of the specified monitor.

Any or all of the position arguments may be null. If an error occurs, all non-null position arguments will be set to zero.

extern (C) @nogc nothrow __gshared
void
glfwGetMonitorPos

Parameters

monitor GLFWmonitor*

The monitor to query.

xpos int*

Where to store the monitor x-coordinate, or null.

ypos int*

Where to store the monitor y-coordinate, or null.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

Thread Safety

This function must only be called from the main thread.

@sa @ref monitor_properties

Meta

Since

Added in version 3.0.

Ingroup: monitor