pub type ULSurfaceDefinitionLockPixelsCallback = Option<unsafe extern "C" fn(user_data: *mut c_void) -> *mut c_void>;
Expand description

The callback invoked when a Surface’s pixel buffer is requested to be locked for reading/writing (should return a pointer to locked bytes).

@param user_data User data pointer uniquely identifying the surface.

Aliased Type§

enum ULSurfaceDefinitionLockPixelsCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void) -> *mut c_void)

Some value of type T.