glfwGetMonitorWorkarea

Retrieves the work area of the monitor.

This function returns the position, in screen coordinates, of the upper-left corner of the work area of the specified monitor along with the work area size in screen coordinates. The work area is defined as the area of the monitor not occluded by the operating system task bar where present. If no task bar exists then the work area is the monitor resolution in screen coordinates.

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

extern (C) @nogc nothrow __gshared
void
glfwGetMonitorWorkarea
(,
int* xpos
,
int* ypos
,
int* width
,
int* height
)

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.

width int*

Where to store the monitor width, or null.

height int*

Where to store the monitor height, 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_workarea

Meta

Since

Added in version 3.3.

Ingroup: monitor