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
- debian bookworm: libsdl1.2-dev 1.2.15+dfsg2-8 Β· LGPL-2.1-or-later
- nixos 26.05: SDL_sixel 0-unstable-2016-02-06
- nixpkgs unstable: SDL_sixel 0-unstable-2016-02-06
- ubuntu jammy: libsdl1.2-dev 1.2.15+dfsg2-6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms