SDL_WM_SetCaption(3)

✨ NAME ✨

SDL_WM_SetCaption β€” sets the window tile and icon name πŸŽ€

(ok so yes, the page literally says "tile" and not "title" β€” not me editing the sacred texts bestie, we copy the manpage character for character around here πŸ’…)


🌸 SYNOPSIS 🌸

#include "SDL.h"

void SDL_WM_SetCaption(const char *title, const char *icon);

πŸ’– DESCRIPTION πŸ’–

It sets the title-bar and the icon name of the display window. That's it. That's the whole thing. Two little strings walk into a window and suddenly everyone knows what your app is called ✨

The title is the title-bar situation, the icon is the icon name situation, and the function returns void because it's a chill queen who has nothing to report back to you 🫢


πŸ¦‹ SEE ALSO πŸ¦‹

  • SDL_WM_GetCaption β€” the read-only bestie, for when you want to know what the caption currently is πŸ‘€
  • SDL_WM_SetIcon β€” the actual-icon-pixels sibling, since this function only handles the name part of the icon vibe 🌈

no cap, this is a short one β€” go read the SEE ALSOs, they're the main characters of this trio πŸ’œ

and that's the whole page, mwah πŸ’‹ β€” straight outta the SDL API Reference, dated Tue 11 Sep 2001, 23:02, which is lowkey ancient but she ate and left no crumbs πŸ‘‘

πŸ“¦ where this page comes from