glfwGetMonitorWorkarea function
! @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 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.
@paramin
monitor The monitor to query.
@paramout
xpos Where to store the monitor x-coordinate, or NULL
.
@paramout
ypos Where to store the monitor y-coordinate, or NULL
.
@paramout
width Where to store the monitor width, or NULL
.
@paramout
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
GLFWAPI void glfwGetMonitorWorkarea(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height)
Implementation
void glfwGetMonitorWorkarea(Pointer<GLFWmonitor> monitor, Pointer<Int32> xpos,
Pointer<Int32> ypos, Pointer<Int32> width, Pointer<Int32> height) {
final glfwGetMonitorWorkareaLookupFunction = libglfw.lookupFunction<
Void Function(Pointer<GLFWmonitor> monitor, Pointer<Int32> xpos,
Pointer<Int32> ypos, Pointer<Int32> width, Pointer<Int32> height),
void Function(
Pointer<GLFWmonitor> monitor,
Pointer<Int32> xpos,
Pointer<Int32> ypos,
Pointer<Int32> width,
Pointer<Int32> height)>('glfwGetMonitorWorkarea');
return glfwGetMonitorWorkareaLookupFunction(
monitor, xpos, ypos, width, height);
}