[−][src]Type Definition sdl2_sys::SDL_TimerCallback
type SDL_TimerCallback = Option<unsafe extern "C" fn(interval: Uint32, param: *mut c_void) -> Uint32>;
Function prototype for the timer callback function.
The callback function is passed the current timer interval and returns the next timer interval. If the returned value is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled. If the callback returns 0, the periodic alarm is cancelled.