SDL_SystemTheme(3type)

πŸ’– SDL_SystemTheme β€” the system theme type πŸ’–

okay bestie so this is the manual for SDL_SystemTheme, part of the SDL3 datatypes era, and it's literally just about knowing whether your user's system is giving light mode, dark mode, or mystery mode πŸ¦‹


✨ NAME ✨

SDL_SystemTheme β€” System theme.


✨ SYNOPSIS ✨

#include <SDL3/SDL_video.h>

typedef enum SDL_SystemTheme
{
    SDL_SYSTEM_THEME_UNKNOWN,   /**< Unknown system theme */
    SDL_SYSTEM_THEME_LIGHT,     /**< Light colored system theme */
    SDL_SYSTEM_THEME_DARK       /**< Dark colored system theme */
} SDL_SystemTheme;

so yeah, it's an enum, it lives in <SDL3/SDL_video.h>, and it has exactly three moods πŸ’…

  • SDL_SYSTEM_THEME_UNKNOWN β€” the system theme is unknown, it's giving mystery, no vibe check possible πŸ™ˆ
  • SDL_SYSTEM_THEME_LIGHT β€” light colored system theme, bright and airy, main character daylight energy β˜€οΈβœ¨
  • SDL_SYSTEM_THEME_DARK β€” dark colored system theme, the iconic nighttime aesthetic, obsessed πŸ–€πŸ”₯

✨ AVAILABILITY ✨

This enum is available since SDL 3.2.0. so if you're on anything older, bestie, it's not there, periodt πŸŽ€


no cap, keep those enum values exactly as they are β€” SDL_SYSTEM_THEME_UNKNOWN, SDL_SYSTEM_THEME_LIGHT, SDL_SYSTEM_THEME_DARK β€” don't be renaming them, iykyk πŸ’–

and that's the whole page, fr fr 🌸 this came to you from Simple Directmedia Layer, version SDL 3.4.18, and this lil datatype page is literally called SDL_SystemTheme(3type) β€” slay, drink water, go check your system theme bestie πŸ’…πŸ«ΆπŸŒˆ

πŸ“¦ where this page comes from