SDL_TrayEntryFlags(3type)

πŸ’– SDL_TrayEntryFlags πŸ’–

okay bestie, welcome to SDL_TrayEntryFlags β€” a page straight out of the SDL3 DATATYPES corner of the SDL_TrayEntryFlags(3type) manual. it's giving "tiny file, huge power" and honestly? iconic. ✨


πŸŽ€ NAME πŸŽ€

SDL_TrayEntryFlags β€” the flags that control the creation of system tray entries. like, the whole vibe of your tray item is decided here, no cap. πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_tray.h>

typedef Uint32 SDL_TrayEntryFlags;

#define SDL_TRAYENTRY_BUTTON      0x00000001u /**< Make the entry a simple button. Required. */
#define SDL_TRAYENTRY_CHECKBOX    0x00000002u /**< Make the entry a checkbox. Required. */
#define SDL_TRAYENTRY_SUBMENU     0x00000004u /**< Prepare the entry to have a submenu. Required */
#define SDL_TRAYENTRY_DISABLED    0x80000000u /**< Make the entry disabled. Optional. */
#define SDL_TRAYENTRY_CHECKED     0x40000000u /**< Make the entry checked. This is valid only for checkboxes. Optional. */

so it's literally just a Uint32 under a cute little alias, and then five #defines doing the actual work. periodt. πŸ¦‹


✨ DESCRIPTION ✨

bestie, listen. some of these flags are required. exactly one of them must be specified at the time a tray entry is created β€” not zero, not two, one. choose your fighter. πŸ₯Š

the other flags are optional, and you can OR together zero or more of those with that one required flag. zero is a valid amount of optional flags, she said what she said. πŸ’…


🫢 AVAILABILITY 🫢

this datatype has been around since SDL 3.2.0. so if you're on anything older, that's a no from her. 😭


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page, you ate it, no crumbs left. go forth and build tray entries. πŸ’œ

🌸 mwah πŸ’‹ β€” brought to you by Simple Directmedia Layer, rocking SDL 3.4.18, and this lil datatype page signs off as SDL_TrayEntryFlags(3type). slay, bye! ✨

πŸ“¦ where this page comes from