table of contents
other versions
- trixie 3.2.10+ds-1
- testing 3.4.2+ds-1
- unstable 3.4.2+ds-1
- experimental 3.5~git20260304~c20a058+ds-1
| SDL_HintCallback(3type) | SDL3 DATATYPES | SDL_HintCallback(3type) |
NAME¶
SDL_HintCallback - A callback used to send notifications of hint value changes.
SYNOPSIS¶
#include <SDL3/SDL_hints.h>
typedef void(SDLCALL *SDL_HintCallback)(void *userdata, const char *name, const char *oldValue, const char *newValue);
DESCRIPTION¶
This is called an initial time during SDL_AddHintCallback with the hint's current value, and then again each time the hint's value changes. In the initial call, the current value is in both oldValue and newValue.
FUNCTION PARAMETERS¶
THREAD SAFETY¶
This callback is fired from whatever thread is setting a new hint value. SDL holds a lock on the hint subsystem when calling this callback.
AVAILABILITY¶
This datatype is available since SDL 3.2.0.
SEE ALSO¶
| SDL 3.5.0 | Simple Directmedia Layer |