SDL_WM_ToggleFullScreen(3)
π SDL_WM_ToggleFullScreen(3) π
okay bestie, welcome to the SDL API Reference β¨ this one's a lil page from the SDL fam and it's literally about flipping your window between windowed and fullscreen like it's nothing. slay.
πΈ NAME πΈ
SDL_WM_ToggleFullScreen β toggles fullscreen mode π¦
β¨ SYNOPSIS β¨
#include "SDL.h"
int SDL_WM_ToggleFullScreen(SDL_Surface *surface);
π DESCRIPTION π
So the way this works is: it toggles your app between windowed mode and fullscreen mode, if supported. That "if supported" is doing a lot of heavy lifting ngl π
And likeβ¦ the support situation is lowkey limited. X11 is the only target that's currently supported, fr fr. BeOS support? Experimental. That's it. That's the list. π
π«Ά not me warning you that this is a very "depends on your platform" kinda function. the vibes are: check before you rely on it.
π RETURN VALUE π
It returns 0 on failure or 1 on success. So like, 0 = π, 1 = π. Simple as that.
π SEE ALSO π
There is no SEE ALSO section on this page, bestie β it's a short one. But that's okay, she's iconic in her own tiny way β
and that's the whole page!! short, sweet, main character energy, no cap π
mwah β this lil page comes to you from SDL, dated Tue 11 Sep 2001, 23:02. vintage! retro! a true elder icon of the manpage world πβ¨ go toggle something, bestie π¦
π¦ 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