glfwGetMonitorPhysicalSize

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.

extern (C) @nogc nothrow __gshared
void
glfwGetMonitorPhysicalSize

Parameters

monitor GLFWmonitor*

The monitor to query.

widthMM int*

Where to store the width, in millimetres, of the monitor's display area, or null.

heightMM int*

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 calculates the returned physical size 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

Meta

Since

Added in version 3.0.

Ingroup: monitor