SDL_GetPropertyType(3)

🌸 SDL_GetPropertyType(3) 🌸

okay so bestie, welcome to the SDL3 FUNCTIONS manual β€” and today's main character is SDL_GetPropertyType(3) πŸ’– the way this function just gets the type of a property in a group of properties is so iconic, no cap πŸ’…


✨ NAME ✨

SDL_GetPropertyType β€” gets the type of a property in a group of properties. like, you point at a property and it tells you what kind of vibe it has πŸ”₯


πŸ“œ SYNOPSIS πŸ“œ

#include <SDL3/SDL_properties.h>

SDL_PropertyType SDL_GetPropertyType(SDL_PropertiesID props, const char *name);

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • props β€” the properties to query. this is the group of properties you're checking, bestie.
  • name β€” the name of the property to query. the specific one you're curious about πŸ‘‘

πŸ’– RETURN VALUE πŸ’–

Returns the type of the property, or SDL_PROPERTY_TYPE_INVALID if it is not set. so if it's not there, you get that invalid signal, periodt.


🧡 THREAD SAFETY 🧡

It is safe to call this function from any thread. so go off, call it from wherever, it's giving responsible πŸ’…


⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0. so if you're on something older, it's not gonna be there, sorry bestie 😭


πŸ‘€ SEE ALSO πŸ‘€


anyway, this page is from Simple Directmedia Layer, SDL 3.4.18, and it's the SDL_GetPropertyType(3) manual page. stay slay, bye 🫢✨

πŸ“¦ where this page comes from