diff --git a/docs/window.dox b/docs/window.dox index 3cec6358..896b49f8 100644 --- a/docs/window.dox +++ b/docs/window.dox @@ -882,6 +882,15 @@ If you are using C++11 or C11, you can use a UTF-8 string literal. glfwSetWindowTitle(window, u8"This is always a UTF-8 string"); @endcode +The window title can be retrieved with @ref glfwGetWindowTitle. + +@code +const char* title = glfwGetWindowTitle(window); +@endcode + +The title returned is an internally managed copy of the title set +by @ref glfwCreateWindow or @ref glfwSetWindowTitle. It does not +include any additional text which may be appended by the platform. @subsection window_icon Window icon