SDL_GetBooleanProperty(3)
π SDL_GetBooleanProperty π
okay bestie, welcome to the SDL_GetBooleanProperty(3) page, straight out of the SDL3 FUNCTIONS lineup β¨ this one's a little cutie from <SDL3/SDL_properties.h> and she's about to hand you a bool like it's nothing.
πΈ NAME πΈ
SDL_GetBooleanProperty β get a boolean property from a group of properties. that's it, that's the whole job, and she does it flawlessly π
β¨ SYNOPSIS β¨
#include <SDL3/SDL_properties.h>
bool SDL_GetBooleanProperty(SDL_PropertiesID props, const char *name, bool default_value);
look at that signature. clean. iconic. no notes π«Ά
π¦ DESCRIPTION π¦
so here's the tea: you call this and she goes and fetches the boolean property for you. simple. slay.
but lowkey, if you wanna be that girl and check whether the property actually exists and is truly a boolean property before you go grabbing it β you can use SDL_GetPropertyType() to query that. it's giving responsible main character energy π₯
π FUNCTION PARAMETERS π
propsβ the properties to query. this is your group of properties, your little squad, the whole vibe check container πnameβ the name of the property to query. yes bestie, you gotta know her name, iykyk πΈdefault_valueβ the default value of the property. this is your backup plan, your safety net, your "if she's not there i'm still fine" moment π
β RETURN VALUE β
she returns the value of the property π β OR, and hear me out, default_value if it is not set or not a boolean property. so like, no surprises, no undefined chaos, you always get something back. periodt.
π THREAD SAFETY π
it is safe to call this function from any thread. any of them. all of them. go wild, queen π no cap.
π« AVAILABILITY π«
this function is available since SDL 3.2.0. so if you're on something older... bestie, upgrade, it's not that deep π
π§ SEE ALSO π§
the whole friend group fr fr π go read them too, they're all serving.
π reminder: the facts above are the facts, no embellishment, no invented behaviour. i just made them cuter. that's the whole assignment. π
okay bye, ily, this page was brought to you by Simple Directmedia Layer, version SDL 3.4.18, and by the SDL_GetBooleanProperty(3) girlies πβ¨π¦
π¦ 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