Get the title of an existing window


Dear Forum,

i have another stupid / basic question :smiley:
Is there a function to get the title of a window back,
or do i need to save it seperately?

Thank you

No documentation to get window title?

There’s no get function for the title, you need to store it yourself.


Hello dougbinks,

thank you for your quick response!
But could you explain to me in a spare moment, why there is no function for this?
Is it intended?


I didn’t design the API, but my assumption would be that since the user of the GLFW API sets the window title the user of the API would therefore already know (and have) the window title, so there’s no need for an extra API function to get it.

If you have a strong use case where a get would be useful, add an issue to GLFW on github.