pub type ULSurfaceDefinitionCreateCallback = Option<unsafe extern "C" fn(width: c_uint, height: c_uint) -> *mut c_void>;
Expand description

The callback invoked when a Surface is created.

@param width The width in pixels. @param height The height in pixels.

@return This callback should return a pointer to user-defined data for the instance. This user data pointer will be passed to all other callbacks when operating on the instance.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.