glfwSetWindowTitle

Function glfwSetWindowTitle 

Source
pub unsafe extern "C" fn glfwSetWindowTitle(
    window: *mut GLFWwindow,
    title: *const i8,
)
Expand description

@brief Sets the title of the specified window.

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

@param[in] window The window whose title to change. @param[in] title 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 @sa @ref glfwGetWindowTitle

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

@ingroup window