glfwGetMonitorName

Returns the name of the specified monitor.

This function returns a human-readable name, encoded as UTF-8, of the specified monitor. The name typically reflects the make and model of the monitor and is not guaranteed to be unique among the connected monitors.

extern (C) @nogc nothrow __gshared
const(char)*
glfwGetMonitorName

Parameters

monitor GLFWmonitor*

The monitor to query.

Return Value

Type: const(char)*

The UTF-8 encoded name of the monitor, or null if an error occurred.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED.

Pointer lifetime

The returned string is allocated and freed by GLFW. You should not free it yourself. It is valid until the specified monitor is disconnected or the library is terminated.

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