pub unsafe extern "C" fn glfwGetMonitorPhysicalSize(
monitor: *mut GLFWmonitor,
widthMM: *mut i32,
heightMM: *mut i32,
)Expand description
@brief Returns the physical size of the monitor.
This function returns the size, in millimetres, of the display area of the specified monitor.
Some platforms 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.
@param[in] monitor The monitor to query.
@param[out] widthMM Where to store the width, in millimetres, of the
monitor’s display area, or NULL.
@param[out] 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