glfwGetMonitorPhysicalSize function
! @brief Returns the physical size of the monitor.
This function returns the size, in millimetres, of the display area of the specified monitor.
Some systems do not provide accurate monitor size information, either because the monitor EDID data is incorrect or because the driver does not report it accurately.
Any or all of the size arguments may be NULL
. If an error occurs, all
non-NULL
size arguments will be set to zero.
@paramin
monitor The monitor to query.
@paramout
widthMM Where to store the width, in millimetres, of the
monitor's display area, or NULL
.
@paramout
heightMM Where to store the height, in millimetres, of the
monitor's display area, or NULL
.
@errors Possible errors include @ref GLFW_NOT_INITIALIZED.
@remark @win32 On Windows 8 and earlier the physical size is calculated from the current resolution and system DPI instead of querying the monitor EDID data.
@thread_safety This function must only be called from the main thread.
@sa @ref monitor_properties
@since Added in version 3.0.
@ingroup monitor
GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* monitor, int* widthMM, int* heightMM)
Implementation
void glfwGetMonitorPhysicalSize(Pointer<GLFWmonitor> monitor,
Pointer<Int32> widthMM, Pointer<Int32> heightMM) {
final glfwGetMonitorPhysicalSizeLookupFunction = libglfw.lookupFunction<
Void Function(Pointer<GLFWmonitor> monitor, Pointer<Int32> widthMM,
Pointer<Int32> heightMM),
void Function(Pointer<GLFWmonitor> monitor, Pointer<Int32> widthMM,
Pointer<Int32> heightMM)>('glfwGetMonitorPhysicalSize');
return glfwGetMonitorPhysicalSizeLookupFunction(monitor, widthMM, heightMM);
}