@ -783,6 +783,33 @@ extern "C" {
* [ custom cursor ] ( @ ref cursor_custom ) .
*/
# define GLFW_CURSOR_UNAVAILABLE 0x0001000B
/*! @brief The reuqested feature is not provided by the platform.
*
* The requested feature is not provided by the platform , so GLFW is unable to
* implement it . The documentation for each function notes if it could emit
* this error .
*
* @ analysis Platform or platform version limitation . The error can be ignored
* unless the feature is critical to the application .
*
* @ par
* A function call that emits this error has no effect other than the error and
* updating any existing out parameters .
*/
# define GLFW_FEATURE_UNAVAILABLE 0x0001000C
/*! @brief The requested feature is not implemented for the platform.
*
* The requested feature has not yet been implemented in GLFW for this platform .
*
* @ analysis An incomplete implementation of GLFW for this platform , hopefully
* fixed in a future release . The error can be ignored unless the feature is
* critical to the application .
*
* @ par
* A function call that emits this error has no effect other than the error and
* updating any existing out parameters .
*/
# define GLFW_FEATURE_UNIMPLEMENTED 0x0001000D
/*! @} */
/*! @addtogroup window
@ -2871,21 +2898,21 @@ GLFWAPI void glfwSetWindowTitle(GLFWwindow* window, const char* title);
* @ param [ in ] images The images to create the icon from . This is ignored if
* count is zero .
*
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED and @ ref
* GLFW_PLATFORM_ERROR .
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED , @ ref
* GLFW_PLATFORM_ERROR and @ ref GLFW_FEATURE_UNAVAILABLE ( see remarks ) .
*
* @ pointer_lifetime The specified image data is copied before this function
* returns .
*
* @ remark @ macos The GLFW window has no icon , as it is not a document
* window , so this function does nothing . The dock icon will be the same as
* @ remark @ macos Regular windows do not have icons on macOS . This function
* will emit @ ref GLFW_FEATURE_UNAVAILABLE . The dock icon will be the same as
* the application bundle ' s icon . For more information on bundles , see the
* [ Bundle Programming Guide ] ( https : //developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/)
* in the Mac Developer Library .
*
* @ remark @ wayland There is no existing protocol to change an icon , the
* window will thus inherit the one defined in the application ' s desktop file .
* This function always emits @ ref GLFW_PLATFORM_ERROR .
* This function will emit @ ref GLFW_FEATURE_UNAVAILABLE .
*
* @ thread_safety This function must only be called from the main thread .
*
@ -2911,12 +2938,12 @@ GLFWAPI void glfwSetWindowIcon(GLFWwindow* window, int count, const GLFWimage* i
* @ param [ out ] ypos Where to store the y - coordinate of the upper - left corner of
* the content area , or ` NULL ` .
*
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED and @ ref
* GLFW_PLATFORM_ERROR .
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED , @ ref
* GLFW_PLATFORM_ERROR and @ ref GLFW_FEATURE_UNAVAILABLE ( see remarks ) .
*
* @ remark @ wayland There is no way for an application to retrieve the global
* position of its windows , t his function will always emit @ ref
* GLFW_PLATFORM_ERROR .
* position of its windows . T his function will emit @ ref
* GLFW_FEATURE_UNAVAILABLE .
*
* @ thread_safety This function must only be called from the main thread .
*
@ -2945,12 +2972,12 @@ GLFWAPI void glfwGetWindowPos(GLFWwindow* window, int* xpos, int* ypos);
* @ param [ in ] xpos The x - coordinate of the upper - left corner of the content area .
* @ param [ in ] ypos The y - coordinate of the upper - left corner of the content area .
*
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED and @ ref
* GLFW_PLATFORM_ERROR .
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED , @ ref
* GLFW_PLATFORM_ERROR and @ ref GLFW_FEATURE_UNAVAILABLE ( see remarks ) .
*
* @ remark @ wayland There is no way for an application to set the global
* position of its windows , t his function will always emit @ ref
* GLFW_PLATFORM_ERROR .
* position of its windows . T his function will emit @ ref
* GLFW_FEATURE_UNAVAILABLE .
*
* @ thread_safety This function must only be called from the main thread .
*
@ -3262,8 +3289,11 @@ GLFWAPI float glfwGetWindowOpacity(GLFWwindow* window);
* @ param [ in ] window The window to set the opacity for .
* @ param [ in ] opacity The desired opacity of the specified window .
*
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED and @ ref
* GLFW_PLATFORM_ERROR .
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED , @ ref
* GLFW_PLATFORM_ERROR and @ ref GLFW_FEATURE_UNAVAILABLE ( see remarks ) .
*
* @ remark @ wayland There is no way to set an opacity factor for a window .
* This function will emit @ ref GLFW_FEATURE_UNAVAILABLE .
*
* @ thread_safety This function must only be called from the main thread .
*
@ -3430,11 +3460,11 @@ GLFWAPI void glfwHideWindow(GLFWwindow* window);
*
* @ param [ in ] window The window to give input focus .
*
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED and @ ref
* GLFW_PLATFORM_ERROR .
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED , @ ref
* GLFW_PLATFORM_ERROR and @ ref GLFW_FEATURE_UNAVAILABLE ( see remarks ) .
*
* @ remark @ wayland It is not possible for an application to bring its windows
* to front , t his function will always emit @ ref GLFW_PLATFORM_ERROR .
* @ remark @ wayland It is not possible for an application to set the input
* focus . T his function will emit @ ref GLFW_FEATURE_UNAVAILABLE .
*
* @ thread_safety This function must only be called from the main thread .
*
@ -4186,7 +4216,7 @@ GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode);
* If the mode is ` GLFW_RAW_MOUSE_MOTION ` , the value must be either ` GLFW_TRUE `
* to enable raw ( unscaled and unaccelerated ) mouse motion when the cursor is
* disabled , or ` GLFW_FALSE ` to disable it . If raw motion is not supported ,
* attempting to set this will emit @ ref GLFW_PLATFORM_ERROR . Call @ ref
* attempting to set this will emit @ ref GLFW_FEATURE_UNAVAILABLE . Call @ ref
* glfwRawMouseMotionSupported to check for support .
*
* @ param [ in ] window The window whose input mode to set .
@ -4196,7 +4226,8 @@ GLFWAPI int glfwGetInputMode(GLFWwindow* window, int mode);
* @ param [ in ] value The new value of the specified input mode .
*
* @ errors Possible errors include @ ref GLFW_NOT_INITIALIZED , @ ref
* GLFW_INVALID_ENUM and @ ref GLFW_PLATFORM_ERROR .
* GLFW_INVALID_ENUM , @ ref GLFW_PLATFORM_ERROR and @ ref
* GLFW_FEATURE_UNAVAILABLE ( see above ) .
*
* @ thread_safety This function must only be called from the main thread .
*