glfwSetWindowTitle

Sets the title of the specified window.

This function sets the window title, encoded as UTF-8, of the specified window.

extern (C) @nogc nothrow __gshared
void
glfwSetWindowTitle
(,
const(char)* title
)

Parameters

window GLFWwindow*

The window whose title to change.

title const(char)*

The UTF-8 encoded window title.

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

@remark @macos The window title will not be updated until the next time you process events.

Thread Safety

This function must only be called from the main thread.

@sa @ref window_title

Meta

Since

Added in version 1.0. @glfw3 Added window handle parameter.

Ingroup: window