glfwGetMonitorWorkarea¶
Retrieves the work area of the monitor.
function glfwGetMonitorWorkarea(\GLFWmonitor $monitor, int &$xpos, int &$ypos, int &$width, int &$height) : void
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.
- arguments
-
\GLFWmonitor
$monitor
The monitor to query.int
$xpos
Where to store the monitor x-coordinate, orNULL
.int
$ypos
Where to store the monitor y-coordinate, orNULL
.int
$width
Where to store the monitor width, orNULL
.int
$height
Where to store the monitor height, orNULL
.
- returns
-
void