SDL_HintCallback - A callback used to send notifications of hint value changes.
Contents
Availability
This datatype is available since SDL 3.2.0.
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.
Function Parameters
userdata
what was passed as userdata to SDL_AddHintCallback ().
name what was passed as name to SDL_AddHintCallback ().
oldValue
the previous hint value.
newValue
the new value hint is to be set to.
Header File
Defined in SDL3/SDL_hints.h
Name
SDL_HintCallback - A callback used to send notifications of hint value changes.
See Also
•(3), SDL_AddHintCallback(3) Simple Directmedia Layer SDL 3.2.10 SDL_HintCallback(3type)
Synopsis
#include"SDL3/SDL.h"typedefvoid(SDLCALL*SDL_HintCallback)(void*userdata,constchar*name,constchar*oldValue,constchar*newValue);
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.
