SDL_GetWindowTitle(3)

✨ SDL_GetWindowTitle ✨

okay bestie, welcome to the SDL_GetWindowTitle(3) page, filed under SDL3 FUNCTIONS πŸ’– this is your one-stop shop for finding out what a window is literally calling itself.

🌸 NAME 🌸

SDL_GetWindowTitle β€” get the title of a window. yes that's it. that's the whole job. she's simple, she's iconic, she knows what she's about πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <SDL3/SDL_video.h>

const char * SDL_GetWindowTitle(SDL_Window *window);

πŸ¦‹ FUNCTION PARAMETERS πŸ¦‹

  • window β€” the window you wanna interrogate. the one you're querying. go ask her what her name is πŸ‘‘

πŸ’œ RETURN VALUE πŸ’œ

She hands you back the title of the window, in UTF-8 format 🫢 or, if the window is out here with <em>no</em> title at all (mysterious, elusive, no name energy), you get "" β€” an empty string. that's it. that's the tea.

🧚 THREAD SAFETY 🧚

⚠️ main thread ONLY, bestie. do not come for this function from a side thread. she is not about that life. main thread. periodt. πŸ’€

⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on anything older... yeah, no. upgrade era 🌈

πŸ”₯ SEE ALSO πŸ”₯

  • SDL_SetWindowTitle(3) β€” the other half of the duo. she sets what this one gets. a matching set, fr fr πŸ‘‘

and that's the page, angel πŸ’– this lil slice of the manual lives in the <strong>Simple Directmedia Layer</strong> collection, shipped with <strong>SDL 3.4.18</strong> β€” go get that window title, you absolute main character πŸŽ€βœ¨

πŸ“¦ where this page comes from