pub unsafe extern "C" fn glfwGetMonitorWorkarea(
monitor: *mut GLFWmonitor,
xpos: *mut i32,
ypos: *mut i32,
width: *mut i32,
height: *mut i32,
)Expand description
@brief 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 window 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.
@param[in] monitor The monitor to query.
@param[out] xpos Where to store the monitor x-coordinate, or NULL.
@param[out] ypos Where to store the monitor y-coordinate, or NULL.
@param[out] width Where to store the monitor width, or NULL.
@param[out] height 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
@since Added in version 3.3.
@ingroup monitor