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