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.

§Parameters

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

§Availability

This datatype is available since SDL 3.2.0.

§See also

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.