Added documentation

This commit is contained in:
Doug Binks 2024-02-09 17:35:55 +00:00
parent 05ac1a9757
commit 8dfb6747a8

View File

@ -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"); glfwSetWindowTitle(window, u8"This is always a UTF-8 string");
@endcode @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 @subsection window_icon Window icon