glfwSetClipboardString

Sets the clipboard to the specified string.

This function sets the system clipboard to the specified, UTF-8 encoded string.

extern (C) @nogc nothrow __gshared
void
glfwSetClipboardString
(,
const(char)* string
)

Parameters

window GLFWwindow*

Deprecated. Any valid window or null.

string const(char)*

A UTF-8 encoded string.

Errors: Possible errors include @ref GLFW_NOT_INITIALIZED and @ref GLFW_PLATFORM_ERROR.

Pointer lifetime

The specified string is copied before this function returns.

Thread Safety

This function must only be called from the main thread.

@sa @ref clipboard @sa @ref glfwGetClipboardString

Meta

Since

Added in version 3.0.

Ingroup: input