SDL_HasProperty(3)

✨ SDL_HasProperty(3) ✨

okay bestie, welcome to the SDL3 FUNCTIONS corner of the group chat πŸ’– this one is called SDL_HasProperty, and it's literally just here to answer the most important question ever: does this property exist or not?? πŸŽ€


🌸 NAME 🌸

SDL_HasProperty β€” returns whether a property exists in a group of properties πŸ’…

like... it's a vibe check for properties. does it exist? yes or no. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <SDL3/SDL_properties.h>

bool SDL_HasProperty(SDL_PropertiesID props, const char *name);

πŸ’œ FUNCTION PARAMETERS πŸ’œ

  • props β€” the properties to query, aka the lil property group you're snooping through πŸ‘€
  • name β€” the name of the property you're asking about, bestie 🏷️

✨ RETURN VALUE ✨

Returns true if the property exists, or false if it doesn't πŸ’―

no cap, that's the whole answer. iconic behavior honestly.


🧚 THREAD SAFETY 🧚

It is safe to call this function from any thread 🌈 so go off, call it from wherever, it's not gonna be messy about it 🫢


⭐ AVAILABILITY ⭐

This function is available since SDL 3.2.0 πŸŽ€


πŸ‘‘ SEE ALSO πŸ‘‘

  • SDL_GetPropertyType(3) β€” for when you wanna know not just if it exists but what type it is, iykyk πŸ’…

and that's the whole page, bestie!! this was SDL_HasProperty(3) from the Simple Directmedia Layer crew, SDL version 3.4.18, dated SDL_HasProperty(3) πŸ¦‹ mwah, go check ur properties, ily, bye!! πŸ’–βœ¨

πŸ“¦ where this page comes from