Skip to content

TSdlHintCallback

A callback used to send notifications of hint value changes.

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.

Definition

Unit: Neslib.Sdl3.Basics

type TSdlHintCallback = procedure(const AName, AOldValue, 
  ANewValue: String) of object

Parameters

AName: String : What was passed as AName to TSdlHints.AddCallback (one of the TSdlHints constants).

AOldValue: String : The previous hint value.

ANewValue: String : The new value hint is to be set to.

See Also

Remarks

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.