mirror of
https://github.com/glfw/glfw.git
synced 2026-08-28 01:25:53 +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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user