SDL_HINT_DISPLAY_USABLE_BOUNDS(3)
π NAME π
SDL_HINT_DISPLAY_USABLE_BOUNDS β the lil override hint for SDL_GetDisplayUsableBounds(), bestie. That's literally it, that's the whole job.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_hints.h>
#define SDL_HINT_DISPLAY_USABLE_BOUNDS "SDL_DISPLAY_USABLE_BOUNDS"
πΈ DESCRIPTION πΈ
okay so listen. If you set this hint, it overrides the results you'd normally expect from SDL_GetDisplayUsableBounds() β but only for display index 0. Just the first one. Not the others. Display zero and nobody else, periodt.
Generally you don't want to do this β like, fr fr, this is not the move for a normal app, it's giving "I know something you don't." But the whole point is that it lets an embedded system ask for some of the screen to be reserved for other uses, and that only works out when it's paired with a well-behaved application. Both halves gotta cooperate, iykyk. π
And the value you hand it? It must be 4 comma-separated integers, in this exact order:
- the bounds
xπ¦ - then
yπ¦ - then
widthπ¦ - then
heightπ¦
in that order, no skipping, no reordering, no extra vibes. π
Heads up bestie: this hint can be set anytime. No waiting for a specific init moment, it's flexible like that. π«Ά
β AVAILABILITY β
This hint is available since SDL 3.2.0. π
and that's the whole page, bestie!! written by the Simple Directmedia Layer girlies, rocking SDL 3.4.18 β go reserve some screen space responsibly, mwah ππβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms