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
- 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