SDL_WM_GetCaption(3)

πŸ’– SDL_WM_GetCaption πŸ’–

okay bestie, welcome to the SDL API Reference ✨ this is the SDL_WM_GetCaption(3) page and it is short, like, suspiciously short, but every crumb is important so let's get into it 🫢


✨ NAME ✨

SDL_WM_GetCaption β€” gets the window title and icon name πŸŽ€

no cap, that's literally what it does.


🌸 SYNOPSIS 🌸

#include "SDL.h"

void SDL_WM_GetCaption(char **title, char **icon);

look at that signature. two pointer-to-pointer args. it's giving double pointer energy πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Set pointers to the window title and icon name.

that's the whole vibe fr fr. you hand it title and icon, and it points them at the window title and the icon name respectively. pointers to pointers, because it's setting your pointers for you, not just handing you a string. main character behaviour honestly πŸ‘‘


🌈 SEE ALSO 🌈

  • SDL_WM_SetCaption β€” the setter twin, the yin to this yang πŸ“
  • SDL_WM_SetIcon β€” also a setter, also iconic (literally) ⭐

heads up bestie: this page is the getter. if you were looking for the one that changes stuff, that's over in the SEE ALSO, iykyk πŸ’–

and that's the whole page!! this lil cutie came from the SDL docs, dated Tue 11 Sep 2001, 23:01 β€” yes, a 2001 baddie, and it still ate πŸ’…βœ¨ mwah, go read SDL_WM_SetCaption next, ily, bye πŸŽ€πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from