SDL_HINT_WINDOW_ALLOW_TOPMOST(3)

πŸ’– SDL_HINT_WINDOW_ALLOW_TOPMOST πŸ’–

okay bestie, welcome to the SDL3 functions girlies manual β€” this one's a lil hint, and it's giving "please stop putting your window on top of everything" energy. let's get into it 🫢


✨ NAME ✨

SDL_HINT_WINDOW_ALLOW_TOPMOST β€” if you set it to "0" then SDL will never set the topmost flag on an SDL Window, even if the application literally asks for it. like, respectfully, no. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_WINDOW_ALLOW_TOPMOST "SDL_WINDOW_ALLOW_TOPMOST"

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• β€” this is a debugging aid for developers, and it is not expected to be used by end users. it's a dev-tools-only kind of vibe, iykyk.

The variable can be set to the following values:

  • "0" β€” don't allow topmost πŸ™…
  • "1" β€” allow topmost (default) πŸ‘‘

This hint can be set anytime. no timing drama, no "wait until after init", just set it whenever you want. iconic behavior fr fr ✨


🌈 AVAILABILITY 🌈

This hint is available since SDL 3.2.0. so if you're on something older… bestie, it's not there 😭


that's the whole page, no cap. every flag, every value, every default, all accounted for. main character documentation energy only πŸ‘‘

signing off with love from the Simple Directmedia Layer crew β€” this is the SDL 3.4.18 era, so you know it's fresh πŸŽ€

πŸ“¦ where this page comes from