mirror of
https://github.com/glfw/glfw.git
synced 2026-08-29 03:04:14 +02:00
Clarify documentation of glfwGetClipboardString
The reference documentation for glfwGetClipboardString did not link to GLFW_FORMAT_UNAVAILABLE. Fixes #605.
This commit is contained in:
@@ -3079,7 +3079,9 @@ GLFWAPI void glfwSetClipboardString(GLFWwindow* window, const char* string);
|
||||
/*! @brief Returns the contents of the clipboard as a string.
|
||||
*
|
||||
* This function returns the contents of the system clipboard, if it contains
|
||||
* or is convertible to a UTF-8 encoded string.
|
||||
* or is convertible to a UTF-8 encoded string. If the clipboard is empty of
|
||||
* if its contents cannot be converted, `NULL` is returned and a @ref
|
||||
* GLFW_FORMAT_UNAVAILABLE error is generated.
|
||||
*
|
||||
* @param[in] window The window that will request the clipboard contents.
|
||||
* @return The contents of the clipboard as a UTF-8 encoded string, or `NULL`
|
||||
|
||||
Reference in New Issue
Block a user