SDL_MESSAGEBOXBUTTONFLAGS(3type)
π NAME π
SDL_MessageBoxButtonFlags β bestie, this is literally just the flags for SDL_MessageBoxButtonData. That's it. That's the whole vibe. β¨
π SYNOPSIS π
okay so first things first, you gotta pull in the header:
#include <SDL3/SDL_messagebox.h>
and then, the actual type? she's an unsigned 32-bit girlie:
typedef Uint32 SDL_MessageBoxButtonFlags;
and here are the two flags you can throw at her, fr fr:
#define SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT 0x00000001u /**< Marks the default button when return is hit */
#define SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT 0x00000002u /**< Marks the default button when escape is hit */
so like, SDL_MESSAGEBOX_BUTTON_RETURNKEY_DEFAULT is 0x00000001u and it marks the default button when return is hit π β and SDL_MESSAGEBOX_BUTTON_ESCAPEKEY_DEFAULT is 0x00000002u and it marks the default button when escape is hit π
. two flags, both iconic, no notes.
πΈ AVAILABILITY πΈ
this datatype has been around since SDL 3.2.0, so if you're on anything olderβ¦ not me being unsupported π. upgrade bestie, it's giving glow up.
lowkey reminder: these are flags, so you combine them the usual way β they're just bits on a Uint32, no cap. don't go inventing values that aren't up there tho, the manpage said what it said π«Ά
and that's the whole page, we ate and left no crumbs πβ¨ β this one came from Simple Directmedia Layer, version SDL 3.4.18, and it's the SDL_MessageBoxButtonFlags(3type) page, periodt ππ¦
π¦ 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