Type Alias sdl2_sys::SDL_TimerCallback
source · pub type SDL_TimerCallback = Option<unsafe extern "C" fn(interval: Uint32, param: *mut c_void) -> Uint32>;
Expand description
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.
Aliased Type§
enum SDL_TimerCallback {
None,
Some(unsafe extern "C" fn(_: u32, _: *mut c_void) -> u32),
}