SDL_Enumer...iesCallback(3type)
π SDL_Enumer...iesCallback(3type) π
okay bestie, gather round, because we're talking about a datatype from the SDL3 DATATYPES family β specifically SDL_EnumeratePropertiesCallback, the callback you hand over when you wanna peek at every single property in a group of properties. yes, all of them. no skipping. π
β¨ NAME β¨
SDL_EnumeratePropertiesCallback β a callback used to enumerate all the properties in a group of properties.
like, the whole entire squad. π
π¦ SYNOPSIS π¦
#include <SDL3/SDL_properties.h>
typedef void (SDLCALL *SDL_EnumeratePropertiesCallback)(void *userdata, SDL_PropertiesID props, const char *name);
copy that exactly, bestie, don't get creative with it. π
πΈ DESCRIPTION πΈ
so here's the vibe: this callback gets called from SDL_EnumerateProperties(), and it's called once per property in the set.
one property = one callback call. it's giving very thorough, very systematic, very main character energy. β¨
π FUNCTION PARAMETERS π
userdataβ an app-defined pointer that gets passed to the callback. it's yours, you put it there, you know what it is. πpropsβ theSDL_PropertiesIDthat is being enumerated. the whole group, the whole collection, the whole friend group if you will. πnameβ the next property name in the enumeration. it just keeps showing up with a new name every time. iconic behavior honestly. π
π THREAD SAFETY π
lowkey important:SDL_EnumeratePropertiesholds a lock onpropsduring this callback.
so yeah, it's locked down. no cap. don't go doing anything wild in there. π
β AVAILABILITY β
this datatype is available since SDL 3.2.0. so if you're on something older... bestie. π
π«Ά SEE ALSO π«Ά
and that's the whole page, fr fr. this lil beauty comes to you from Simple Directmedia Layer β the SDL 3.4.18 era, section 3type β so go forth, enumerate those properties, and slay. πβ¨ππ¦πΈπ
π«Άπ₯ππβππππ§π
π¦ 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