Skip to main content

SDL_MainThreadCallback

Type Alias SDL_MainThreadCallback 

Source
pub type SDL_MainThreadCallback = Option<unsafe extern "C" fn(userdata: *mut c_void)>;
Expand description

Callback run on the main thread.

Parameter: userdata an app-controlled pointer that is passed to the callback.

Available Since: This datatype is available since SDL 3.2.0.

See Also: SDL_RunOnMainThread

Aliased Type§

pub enum SDL_MainThreadCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void))

Some value of type T.