SDL_PropertyType(3type)

✨ SDL_PropertyType(3type) ✨

okay bestie, welcome to the SDL3 DATATYPES corner of the man pages πŸŽ€ this one's a whole type situation, and it's short, sweet, and honestly iconic. no cap.


πŸ’– NAME πŸ’–

SDL_PropertyType β€” it's the SDL property type, fr fr πŸ’…


🌸 SYNOPSIS 🌸

like, here's the whole thing, and yes you gotta include it:

#include <SDL3/SDL_properties.h>

typedef enum SDL_PropertyType
{
    SDL_PROPERTY_TYPE_INVALID,
    SDL_PROPERTY_TYPE_POINTER,
    SDL_PROPERTY_TYPE_STRING,
    SDL_PROPERTY_TYPE_NUMBER,
    SDL_PROPERTY_TYPE_FLOAT,
    SDL_PROPERTY_TYPE_BOOLEAN
} SDL_PropertyType;

so it's a typedef enum called SDL_PropertyType, and it has exactly six members, in exactly this order, and every single one of them is lowercase-screaming at you in ALL_CAPS πŸ¦‹

  • SDL_PROPERTY_TYPE_INVALID β€” the "idk her" of the family πŸ™ˆ
  • SDL_PROPERTY_TYPE_POINTER β€” pointing at stuff πŸ’«
  • SDL_PROPERTY_TYPE_STRING β€” text era 🌸
  • SDL_PROPERTY_TYPE_NUMBER β€” numbers, but make it integer-core ✨
  • SDL_PROPERTY_TYPE_FLOAT β€” numbers with decimals, highkey fancy πŸ’…
  • SDL_PROPERTY_TYPE_BOOLEAN β€” true or false, the original yes/no queen πŸ‘‘

🫢 AVAILABILITY 🫢

this enum has been available since SDL 3.2.0. so if you're on anything older, bestie... it's not giving. upgrade, periodt. πŸ”₯


and that's the whole page, no filler, no fluff, just vibes and one very well-behaved enum 🧚

Simple Directmedia Layer β€’ SDL 3.4.18 β€’ SDL_PropertyType(3type) β€” mwah, kiss the docs goodbye, ily, go write some properties πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from