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 π
SDL_InsertTrayEntryAt(3)β go read this one next, it's the bestie of this page fr fr π
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
- 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