Clarify documentation of glfwGetClipboardString

The reference documentation for glfwGetClipboardString did not link to
GLFW_FORMAT_UNAVAILABLE.

Fixes #605.
This commit is contained in:
Camilla Berglund
2015-09-16 16:27:28 +02:00
parent 7c6a8775eb
commit 0b65053ffd
2 changed files with 9 additions and 2 deletions

View File

@@ -544,9 +544,14 @@ converted to one, you can retrieve it with @ref glfwGetClipboardString. See the
reference documentation for the lifetime of the returned string.
@code
const char* clipboard = glfwGetClipboardString(window);
const char* text = glfwGetClipboardString(window);
if (text)
insert_text(text);
@endcode
If the clipboard is empty or if its contents could not be converted, `NULL` is
returned.
The contents of the system clipboard can be set to a UTF-8 encoded string with
@ref glfwSetClipboardString.